Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | private function isFullyQualifiedNamespaceValid(string $current, string $publicEntry): bool |
||
27 | { |
||
28 | if (strpos($current, $publicEntry) !== false) { |
||
29 | $blockEntry = \explode('\\', $publicEntry); |
||
30 | $blockCurrent = \explode('\\', $current); |
||
31 | |||
32 | $endA = \end($blockEntry); |
||
33 | $endB = \end($blockCurrent); |
||
34 | |||
35 | if ($endA !== $endB) { |
||
36 | return false; |
||
37 | } |
||
38 | |||
39 | return true; |
||
40 | } |
||
41 | |||
42 | return false; |
||
43 | } |
||
45 |