Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | public function authorize() |
||
57 | { |
||
58 | $privateKey = Configuration::get('pmt_private_key'); |
||
59 | |||
60 | if (Tools::getValue('secret', false) == $privateKey) { |
||
61 | return true; |
||
62 | } |
||
63 | |||
64 | header('HTTP/1.1 403 Forbidden', true, 403); |
||
65 | header('Content-Type: application/json', true); |
||
66 | |||
67 | exit(); |
||
68 | } |
||
70 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths