Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
87 | public function run() |
||
88 | { |
||
89 | /** |
||
90 | * Check are request headers ok |
||
91 | */ |
||
92 | if ($this->headers->areOk() && !$this->request->isOptionRequest()) { |
||
93 | $this->response->handle($this->request, $this->headers); |
||
94 | } else { |
||
95 | $this->response->options($this->headers); |
||
96 | } |
||
97 | |||
98 | $this->headers->send(); |
||
99 | |||
100 | print json_encode($this->response->output(), JSON_PRETTY_PRINT); |
||
101 | |||
102 | // We are done |
||
103 | exit(); |
||
104 | } |
||
105 | } |
||
106 |
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..