| Conditions | 4 |
| Paths | 8 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public static function getFacadeService(string $serviceId) |
||
| 40 | { |
||
| 41 | return self::$container->has($serviceId) ? |
||
| 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. |
||
| 45 | (self::$locator !== null && self::$locator->has($serviceId) ? |
||
| 46 | self::$locator->get($serviceId) : null); |
||
| 47 | } |
||
| 49 |