@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public ?string $key = null, |
| 41 | 41 | public ?string $type = null, |
| 42 | 42 | public bool $nullable = false, |
| 43 | - array|object $attributes = [], |
|
| 43 | + array | object $attributes = [], |
|
| 44 | 44 | ) { |
| 45 | 45 | $this->attributes = \is_array($attributes) ? $attributes : [$attributes]; |
| 46 | 46 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $i = 0; |
| 56 | 56 | $locator = $this->getServiceLocator([ |
| 57 | - 'foo' => function () use (&$i) { |
|
| 57 | + 'foo' => function() use (&$i) { |
|
| 58 | 58 | ++$i; |
| 59 | 59 | |
| 60 | 60 | return 'bar'; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | public function testThrowsOnUndefinedInternalService() |
| 70 | 70 | { |
| 71 | 71 | $locator = $this->getServiceLocator([ |
| 72 | - 'foo' => function () use (&$locator) { return $locator->get('bar'); }, |
|
| 72 | + 'foo' => function() use (&$locator) { return $locator->get('bar'); }, |
|
| 73 | 73 | ]); |
| 74 | 74 | |
| 75 | 75 | if (!$this->getExpectedException()) { |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | public function testThrowsOnCircularReference() |
| 84 | 84 | { |
| 85 | 85 | $locator = $this->getServiceLocator([ |
| 86 | - 'foo' => function () use (&$locator) { return $locator->get('bar'); }, |
|
| 87 | - 'bar' => function () use (&$locator) { return $locator->get('baz'); }, |
|
| 88 | - 'baz' => function () use (&$locator) { return $locator->get('bar'); }, |
|
| 86 | + 'foo' => function() use (&$locator) { return $locator->get('bar'); }, |
|
| 87 | + 'bar' => function() use (&$locator) { return $locator->get('baz'); }, |
|
| 88 | + 'baz' => function() use (&$locator) { return $locator->get('bar'); }, |
|
| 89 | 89 | ]); |
| 90 | 90 | |
| 91 | 91 | $this->expectException(ContainerExceptionInterface::class); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | } else { |
| 77 | 77 | $type = (new \ReflectionFunction($factory))->getReturnType(); |
| 78 | 78 | |
| 79 | - $this->providedTypes[$name] = $type ? ($type->allowsNull() ? '?' : '').($type instanceof \ReflectionNamedType ? $type->getName() : $type) : '?'; |
|
| 79 | + $this->providedTypes[$name] = $type ? ($type->allowsNull() ? '?' : '') . ($type instanceof \ReflectionNamedType ? $type->getName() : $type) : '?'; |
|
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | 82 | } |
@@ -51,14 +51,14 @@ |
||
| 51 | 51 | |
| 52 | 52 | /* @var SubscribedService $attribute */ |
| 53 | 53 | $attribute = $attribute->newInstance(); |
| 54 | - $attribute->key ??= self::class.'::'.$method->name; |
|
| 54 | + $attribute->key ??= self::class . '::' . $method->name; |
|
| 55 | 55 | $attribute->type ??= $returnType instanceof \ReflectionNamedType ? $returnType->getName() : (string) $returnType; |
| 56 | 56 | $attribute->nullable = $returnType->allowsNull(); |
| 57 | 57 | |
| 58 | 58 | if ($attribute->attributes) { |
| 59 | 59 | $services[] = $attribute; |
| 60 | 60 | } else { |
| 61 | - $services[$attribute->key] = ($attribute->nullable ? '?' : '').$attribute->type; |
|
| 61 | + $services[$attribute->key] = ($attribute->nullable ? '?' : '') . $attribute->type; |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | use Symfony\Polyfill\Intl\Normalizer as p; |
| 13 | 13 | |
| 14 | 14 | if (\PHP_VERSION_ID >= 80000) { |
| 15 | - return require __DIR__.'/bootstrap80.php'; |
|
| 15 | + return require __DIR__ . '/bootstrap80.php'; |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | if (!function_exists('normalizer_is_normalized')) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return array ( |
|
| 3 | +return array( |
|
| 4 | 4 | 'À' => 'À', |
| 5 | 5 | 'Á' => 'Á', |
| 6 | 6 | 'Â' => 'Â', |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return array ( |
|
| 3 | +return array( |
|
| 4 | 4 | ' ' => ' ', |
| 5 | 5 | '¨' => ' ̈', |
| 6 | 6 | 'ª' => 'a', |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return array ( |
|
| 3 | +return array( |
|
| 4 | 4 | 'À' => 'À', |
| 5 | 5 | 'Á' => 'Á', |
| 6 | 6 | 'Â' => 'Â', |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return array ( |
|
| 3 | +return array( |
|
| 4 | 4 | '̀' => 230, |
| 5 | 5 | '́' => 230, |
| 6 | 6 | '̂' => 230, |