| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function handle(): void |
||
| 15 | { |
||
| 16 | foreach ($this->pirateWrathRepository->findAll() as $pirateWrath) { |
||
| 17 | |||
| 18 | $currentWrath = $pirateWrath->getWrath(); |
||
| 19 | if ($currentWrath <= 100) { |
||
| 20 | continue; |
||
| 21 | } |
||
| 22 | |||
| 23 | $pirateWrath->setWrath( |
||
| 24 | $currentWrath - 1 |
||
| 25 | ); |
||
| 26 | $this->pirateWrathRepository->save($pirateWrath); |
||
| 27 | } |
||
| 30 |