Conditions | 6 |
Paths | 5 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | public function check($path) |
||
59 | { |
||
60 | foreach ($this->array as $param => $paths) { |
||
61 | if ( |
||
62 | mb_strpos($path, "?$param=") || |
||
63 | mb_strpos($path, "&$param=") |
||
64 | ) { |
||
65 | if (empty($paths)) { |
||
66 | return true; |
||
67 | } |
||
68 | if ($this->checkPath($path, $paths)) { |
||
69 | return true; |
||
70 | } |
||
71 | } |
||
72 | } |
||
73 | return false; |
||
74 | } |
||
75 | |||
86 |