@@ -18,7 +18,7 @@ |
||
18 | 18 | public function hasDefinitionFor(string $id): bool; |
19 | 19 | |
20 | 20 | /** |
21 | - * @return string[] a list of IDs of services provided |
|
22 | - */ |
|
21 | + * @return string[] a list of IDs of services provided |
|
22 | + */ |
|
23 | 23 | public function provides(): array; |
24 | 24 | } |
@@ -75,7 +75,7 @@ |
||
75 | 75 | $this->containers[$context] = [ |
76 | 76 | $container, |
77 | 77 | ]; |
78 | - uksort($this->containers, static function (string $a, string $b) { |
|
78 | + uksort($this->containers, static function(string $a, string $b) { |
|
79 | 79 | return mb_strlen($b) <=> mb_strlen($a); |
80 | 80 | }); |
81 | 81 | } |
@@ -25,8 +25,9 @@ |
||
25 | 25 | if ($id === StateResetter::class) { |
26 | 26 | $resetters = []; |
27 | 27 | foreach ($this->containers as $container) { |
28 | - if ($container->has(StateResetter::class)) |
|
29 | - $resetters = array_merge($container->get(StateResetter::class)->getResetters(), $resetters); |
|
28 | + if ($container->has(StateResetter::class)) { |
|
29 | + $resetters = array_merge($container->get(StateResetter::class)->getResetters(), $resetters); |
|
30 | + } |
|
30 | 31 | |
31 | 32 | } |
32 | 33 | return new StateResetter($resetters); |