Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 1 | public static function noAutoloadPsr4MatchFound(string $desiredNamespace, array $knownPsr4 = []): self |
|
25 | { |
||
26 | 1 | $parsedKnownPsr4 = array_map(static fn (string $p) => str_replace('\\', '', $p), $knownPsr4); |
|
27 | |||
28 | 1 | return new self( |
|
29 | 1 | sprintf( |
|
30 | 'No autoload psr-4 match found for %s. Known PSR-4: %s', |
||
31 | $desiredNamespace, |
||
32 | 1 | implode(', ', $parsedKnownPsr4) |
|
33 | ) |
||
37 |