Passed
Push — main ( 388aa0...32dab9 )
by Thierry
01:36
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
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.