| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | protected function assigning(Router $router, string $contracts, array $namespaces) : bool |
||
| 22 | { |
||
| 23 | $nss = array_map(static function ($p) { |
||
| 24 | return lcfirst($p); |
||
| 25 | }, $namespaces); |
||
| 26 | |||
| 27 | if (array_pop($nss) === $contracts) { |
||
| 28 | $router->serving(implode('.', $nss)); |
||
| 29 | return true; |
||
| 30 | } |
||
| 31 | |||
| 32 | return false; |
||
| 33 | } |
||
| 35 |