Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
13 | 4 | public static function fromAnythingButAPsrContainer(string $filename, $notAContainer) : self |
|
14 | { |
||
15 | 4 | return new self(sprintf( |
|
16 | 4 | 'File %s must return a PSR-11 container, actually returned %s', |
|
17 | 4 | $filename, |
|
18 | 4 | is_object($notAContainer) ? get_class($notAContainer) : gettype($notAContainer) |
|
19 | )); |
||
20 | } |
||
21 | } |
||
22 |