@@ -40,8 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | return self::$container->has($serviceId) ? |
42 | 42 | // A public service will be found in the container. |
43 | - self::$container->get($serviceId) : |
|
44 | - // If not found in the container, then look in the service locator. |
|
43 | + self::$container->get($serviceId) : // If not found in the container, then look in the service locator. |
|
45 | 44 | (self::$locator !== null && self::$locator->has($serviceId) ? |
46 | 45 | self::$locator->get($serviceId) : null); |
47 | 46 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function process(ContainerBuilder $container) |
16 | 16 | { |
17 | - if(!$container->hasDefinition('lagdo.facades.service_locator')) |
|
17 | + if (!$container->hasDefinition('lagdo.facades.service_locator')) |
|
18 | 18 | { |
19 | 19 | return; |
20 | 20 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | // Append the tagged services to the service locator first argument. |
25 | 25 | $locatedServices = $serviceLocatorDefinition->getArguments()[0] ?? []; |
26 | 26 | $services = $container->findTaggedServiceIds('lagdo.facades.service'); |
27 | - foreach(array_keys($services) as $service) |
|
27 | + foreach (array_keys($services) as $service) |
|
28 | 28 | { |
29 | 29 | $locatedServices[$service] = $container->getDefinition($service); |
30 | 30 | } |