Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | public function validate(string $script, Http $http): bool |
||
57 | { |
||
58 | $paths = Json::decode($this->config->getExcludePaths()); |
||
59 | $paths = ArrayHelper::getColumn($paths, 'path', false); |
||
60 | |||
61 | $return = false; |
||
62 | |||
63 | if (in_array($this->request->getRequestUri(), $paths)) { |
||
64 | $return = true; |
||
65 | } |
||
66 | |||
67 | return $return; |
||
68 | } |
||
70 |