| Total Complexity | 7 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ConsecutiveCallsReturn extends Handler |
||
| 6 | { |
||
| 7 | 3 | public function handle(): bool |
|
| 8 | { |
||
| 9 | 3 | if (!$this->canHandle()) { |
|
| 10 | 2 | return false; |
|
| 11 | } |
||
| 12 | |||
| 13 | 2 | $this->initialStub->method($this->methodName)->will( |
|
| 14 | 2 | call_user_func_array([$this->testCase, 'onConsecutiveCalls'], $this->transformValue()) |
|
| 15 | ); |
||
| 16 | |||
| 17 | 2 | return true; |
|
| 18 | } |
||
| 19 | |||
| 20 | 3 | private function canHandle(): bool |
|
| 23 | } |
||
| 24 | |||
| 25 | private function transformValue() |
||
| 36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.