| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function findFinishedAndDelete() |
||
| 24 | { |
||
| 25 | $result = []; |
||
| 26 | |||
| 27 | /** @var Transaction $item */ |
||
| 28 | foreach ($this->items as $key => $item) { |
||
| 29 | if (false === $item->isFinished()) { |
||
| 30 | continue; |
||
| 31 | } |
||
| 32 | |||
| 33 | $result[] = $item; |
||
| 34 | unset($this->items[$key]); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $result; |
||
| 38 | } |
||
| 59 |