| Total Complexity | 8 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 4 | class RESTResponse extends CI_Controller |
||
|
|
|||
| 5 | { |
||
| 6 | // Response Codes |
||
| 7 | // 40* |
||
| 8 | const BAD_REQUEST = 400; |
||
| 9 | const UN_AUTHORIZED = 401; |
||
| 10 | const FORBIDDEN = 403; |
||
| 11 | const NOT_ACCEPTABLE = 406; |
||
| 12 | const TOO_MANY_REQUESTS = 429; |
||
| 13 | // 50* |
||
| 14 | const INTERNAL_SERVER_ERROR = 500; |
||
| 15 | const NOT_IMPLEMENTED = 501; |
||
| 16 | /** |
||
| 17 | * [protected HTTP Response Code] |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | protected $code; |
||
| 21 | /** |
||
| 22 | * [protected Response Data] |
||
| 23 | * @var mixed |
||
| 24 | */ |
||
| 25 | protected $data; |
||
| 26 | /** |
||
| 27 | * [protected Shoud Response be JSON Encoded?] |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | protected $json; |
||
| 31 | function __construct($data, int $code) |
||
| 35 | } |
||
| 36 | /** |
||
| 37 | * [__toString description] |
||
| 38 | * @date 2019-11-09 |
||
| 39 | * @return string [description] |
||
| 40 | */ |
||
| 41 | public function __toString():string |
||
| 44 | } |
||
| 45 | /** |
||
| 46 | * [setJSON description] |
||
| 47 | * @date 2019-11-09 |
||
| 48 | * @param bool $json [description] |
||
| 49 | * @return RESTResponse [description] |
||
| 50 | */ |
||
| 51 | public function setJSON(bool $json):RESTResponse |
||
| 52 | { |
||
| 53 | $this->json = $json; |
||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | /** |
||
| 57 | * [send description] |
||
| 58 | * @date 2019-11-09 |
||
| 59 | */ |
||
| 60 | public function send():void |
||
| 68 | } |
||
| 69 | } |
||
| 72 |
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