Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class RestAPI |
||
16 | { |
||
17 | public $version=1; |
||
18 | |||
19 | /** |
||
20 | * @var TrapsController $trapController |
||
21 | */ |
||
22 | protected $trapController=null; |
||
23 | |||
24 | public function __construct(TrapsController $trapCtrl) |
||
25 | { |
||
26 | $this->trapController=$trapCtrl; |
||
27 | } |
||
28 | |||
29 | public function sendJson($object) |
||
34 | //$this->trapController->_helper->json($object); |
||
35 | //echo json_encode($object, JSON_PRETTY_PRINT) . "\n"; |
||
36 | } |
||
37 | |||
38 | protected function sendJsonError(string $error, int $retCode = 200) |
||
39 | { |
||
40 | //TODO |
||
41 | $this->sendJson('{"Error":"'.$error.'"}'); |
||
42 | } |
||
43 | |||
44 | public function last_modified() |
||
54 | } |
||
55 | } |
||
56 | } |
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