Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
13 | 44 | public function findMatchingCallbacks($matchedRoute) |
|
14 | { |
||
15 | 44 | $output = []; |
|
16 | 44 | foreach ($this->all as $routeInfo => $callBacks) { |
|
17 | 43 | foreach ($matchedRoute as $info) { |
|
18 | 43 | if (Str::is($routeInfo, $info)) { |
|
19 | 43 | $output[] = $this->wrapCallbacksForIgnore($callBacks); |
|
20 | } |
||
21 | } |
||
22 | } |
||
23 | |||
24 | 44 | return $output; |
|
25 | } |
||
68 |