| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function radera_omgång(int $omgång, Speltyp $speltyp): void { |
||
| 23 | $this->odds->spel->db->radera_omgång('distribution', $omgång, $speltyp); |
||
| 24 | $this->odds->spel->db->logg->logga(self::class . ": ✅ Raderade distribution. ({$this->odds->spel->omgång})"); |
||
| 25 | |||
| 26 | $mönster = "*-t{$speltyp->value}-o$omgång-*"; |
||
| 27 | $glob = (array) glob(GRAF . DISTRIBUTION . "/$mönster.png"); |
||
| 28 | foreach ($glob as $fil) { |
||
| 29 | is_string($fil) and $this->radera_fil($fil); |
||
| 30 | } |
||
| 55 |