Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
65 | public function run() |
||
66 | { |
||
67 | /** |
||
68 | * Check are request headers ok |
||
69 | */ |
||
70 | if ($this->headers->areOk() && !$this->request->isOptionRequest()) { |
||
71 | $this->response->handle($this->request, $this->headers); |
||
72 | } else { |
||
73 | $this->response->options($this->headers); |
||
74 | } |
||
75 | |||
76 | $this->headers->send(); |
||
77 | |||
78 | print json_encode($this->response->output(), JSON_PRETTY_PRINT); |
||
79 | |||
80 | // We are done |
||
81 | exit(); |
||
82 | } |
||
83 | } |
||
84 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..