Skip to content

Commit 5d48fb6

Browse files
committed
apply StyleCI patch
1 parent 0203b9d commit 5d48fb6

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

src/Annotations/Inject.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Inject
99
{
1010
public function __construct(
1111
public readonly ?string $index = null
12-
)
13-
{
12+
) {
1413
}
1514
}

src/Annotations/Provides.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Provides
99
{
1010
public function __construct(
1111
public readonly string $index
12-
)
13-
{
12+
) {
1413
}
1514
}

src/ServiceContainer.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public function __construct(CacheInterface $cache = null)
5151
*
5252
* @param T $id Identifier of the entry to look for.
5353
*
54-
* @return T
5554
* @throws NotFoundExceptionInterface No entry was found for **this** identifier.
56-
*
5755
* @throws ContainerExceptionInterface Error while retrieving the entry.
56+
*
57+
* @return T
5858
*/
5959
public function get(string $id): mixed
6060
{
@@ -109,17 +109,16 @@ public function has(string $id): bool
109109
* @param ReflectionMethod|ReflectionFunction $reflectionMethod
110110
* @param array $arguments
111111
*
112-
* @return array
113112
* @throws NotFoundExceptionInterface
114113
* @throws ReflectionException
115-
*
116114
* @throws ContainerExceptionInterface
115+
*
116+
* @return array
117117
*/
118118
private function createArguments(
119119
ReflectionMethod|ReflectionFunction $reflectionMethod,
120120
array $arguments = []
121-
): array
122-
{
121+
): array {
123122
foreach ($reflectionMethod->getParameters() as $reflectionParameter) {
124123
$argumentName = $reflectionParameter->getName();
125124

@@ -168,11 +167,11 @@ public function __destruct()
168167
* @param callable $function
169168
* @param array $arguments
170169
*
171-
* @return mixed
172170
* @throws NotFoundExceptionInterface
173171
* @throws ReflectionException
174-
*
175172
* @throws ContainerExceptionInterface
173+
*
174+
* @return mixed
176175
*/
177176
public function invoke(callable $function, array $arguments = []): mixed
178177
{
@@ -187,9 +186,9 @@ public function invoke(callable $function, array $arguments = []): mixed
187186
* @param string $namespace
188187
* @param bool $enforce
189188
*
190-
* @return void
191189
* @throws ReflectionException
192190
*
191+
* @return void
193192
*/
194193
public function loadDefinitionsFromDirectory(string $directory, string $namespace, bool $enforce = false): void
195194
{

tests/ExampleNamespace/ClassB.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class ClassB
1111
public function __construct(
1212
#[Inject] public ClassA $a,
1313
public int $count = 2
14-
)
15-
{
14+
) {
1615
static::increaseCounter();
1716
}
1817
}

tests/ExampleNamespace/ClassC.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ class ClassC
99
public function __construct(
1010
public ClassA $a,
1111
public ClassB $b
12-
)
13-
{
12+
) {
1413
static::increaseCounter();
1514
}
1615
}

tests/ExampleNamespace/ClassD.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
namespace Webdevcave\Yadic\Tests\ExampleNamespace;
44

5-
65
class ClassD
76
{
87
use CountsInstancesTrait;
98

109
public function __construct(
1110
int $x
12-
)
13-
{
11+
) {
1412
static::increaseCounter();
1513
}
1614
}

0 commit comments

Comments
 (0)