| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 2 | public static function createContainerFromIncludedFile(string $containerFile) : ContainerInterface |
|
| 16 | { |
||
| 17 | /** @noinspection PhpIncludeInspection */ |
||
| 18 | 2 | $container = require $containerFile; |
|
| 19 | |||
| 20 | 2 | if (!$container instanceof ContainerInterface) { |
|
| 21 | 1 | throw Exception\NotAPsrContainer::fromAnythingButAPsrContainer($containerFile, $container); |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | return $container; |
|
| 25 | } |
||
| 26 | } |
||
| 27 |