| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | protected function sendRequest() |
||
| 15 | { |
||
| 16 | if ($this->nextToken) { |
||
| 17 | $this->command->set('page', $this->nextToken); |
||
| 18 | } |
||
| 19 | |||
| 20 | $result = $this->command->execute(); |
||
| 21 | $currentToken = $result['paging']['page']; |
||
| 22 | $this->nextToken = $result['paging']['pages'] > $currentToken ? ++$currentToken : false; |
||
|
|
|||
| 23 | |||
| 24 | return $result['files']; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
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..