Passed
Push — main ( 32dab9...7ac871 )
by Thierry
01:39
created
src/Container.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/DependencyInjection/Compiler/CompilerPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function process(ContainerBuilder $container)
17 17
     {
18
-        if(!$container->hasDefinition('lagdo.facades.service_locator'))
18
+        if (!$container->hasDefinition('lagdo.facades.service_locator'))
19 19
         {
20 20
             return;
21 21
         }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         // Append the tagged services to the service locator first argument.
26 26
         $locatedServices = $serviceLocatorDefinition->getArguments()[0] ?? [];
27 27
         $services = $container->findTaggedServiceIds('lagdo.facades.service');
28
-        foreach(array_keys($services) as $service)
28
+        foreach (array_keys($services) as $service)
29 29
         {
30 30
             $locatedServices[$service] = new Reference($service);
31 31
         }
Please login to merge, or discard this patch.