Skip to content

Commit e416c08

Browse files
committed
apply style fixes
1 parent 7e4b62e commit e416c08

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

src/ServiceContainer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ public function loadDefinitionsFromDirectory(string $directory, string $namespac
209209
private function createArguments(
210210
ReflectionMethod|ReflectionFunction $reflectionMethod,
211211
array $arguments = []
212-
): array
213-
{
212+
): array {
214213
foreach ($reflectionMethod->getParameters() as $reflectionParameter) {
215214
$argumentName = $reflectionParameter->getName();
216215

@@ -298,7 +297,7 @@ private function hydrateByClassName(string $className, array $data): mixed
298297
}
299298

300299
$argumentsMap[$parameter->getName()] = [
301-
'type' => $type,
300+
'type' => $type,
302301
'arrayType' => $arrayType,
303302
'isBuiltin' => $reflectionType->isBuiltin(),
304303
];

tests/ExampleNamespace/Candidate.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public function __construct(
1111
public ?int $age = null,
1212
#[ArrayOf(Skill::class)]
1313
public array $skills = []
14-
)
15-
{
14+
) {
1615
}
17-
}
16+
}

tests/ExampleNamespace/Skill.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Skill
66
{
77
public function __construct(
88
public string $title,
9-
)
10-
{
9+
) {
1110
}
12-
}
11+
}

tests/ServiceContainerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public function testHydrationForVector()
119119
public function testHydrationForMatrix()
120120
{
121121
$data = [
122-
'name' => 'John Doe',
123-
'age' => 25,
122+
'name' => 'John Doe',
123+
'age' => 25,
124124
'skills' => [
125125
['title' => 'PHP'],
126126
['title' => 'Java'],

0 commit comments

Comments
 (0)