Passed
Push — main ( 51c6aa...64863d )
by Thierry
01:49
created
src/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
     public static function getService(string $serviceId)
33 33
     {
34 34
         $service = isset(self::$services[$serviceId]) ? self::$services[$serviceId] : null;
35
-        if($service === null)
35
+        if ($service === null)
36 36
         {
37 37
             $service = self::$container->get($serviceId, ContainerInterface::NULL_ON_INVALID_REFERENCE);
38
-            if($service === null && self::$locator !== null && self::$locator->has($serviceId))
38
+            if ($service === null && self::$locator !== null && self::$locator->has($serviceId))
39 39
             {
40 40
                 $service = self::$locator->get($serviceId);
41 41
             }
42 42
             // If a service is found, save it locally.
43
-            if($service !== null)
43
+            if ($service !== null)
44 44
             {
45 45
                 self::$services[$serviceId] = $service;
46 46
             }
Please login to merge, or discard this patch.