@@ -32,15 +32,15 @@ |
||
| 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 | } |