| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 63 | public function authorize() |
||
| 64 | { |
||
| 65 | $privateKey = Configuration::get('pmt_private_key'); |
||
| 66 | |||
| 67 | if (Tools::getValue('secret', false) == $privateKey) { |
||
| 68 | return true; |
||
| 69 | } |
||
| 70 | |||
| 71 | header('HTTP/1.1 403 Forbidden', true, 403); |
||
| 72 | header('Content-Type: application/json', true); |
||
| 73 | |||
| 74 | exit(); |
||
| 75 | } |
||
| 77 |
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