| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 3 | public function rollBack() |
|
| 49 | { |
||
| 50 | 3 | $maxOffset = $this->processList->count() - 1; |
|
| 51 | |||
| 52 | 3 | for ($i = $maxOffset; $i >= 0; $i--) { |
|
| 53 | /** @var ProcessInterface $currentProcess */ |
||
| 54 | 3 | $currentProcess = $this->processList->offsetGet($i); |
|
| 55 | // Exclude rolling back processes that has not been executed |
||
| 56 | 3 | if ($currentProcess->hasExecuted() === false) { |
|
|
|
|||
| 57 | 2 | continue; |
|
| 58 | } |
||
| 59 | 2 | $currentProcess->rollBack(); |
|
| 60 | } |
||
| 61 | 3 | } |
|
| 62 | } |
||
| 63 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.