| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 1 | public function spara_historik(): void { |
|
| 20 | 1 | $this->historiskt_utfall(); |
|
| 21 | |||
| 22 | 1 | $justerade_odds = implode(',', [...$this->odds_j[0], ...$this->odds_j[1], ...$this->odds_j[2]]); |
|
| 23 | 1 | $justerade_streck = implode(',', [...$this->streck_j[0], ...$this->streck_j[1], ...$this->streck_j[2]]); |
|
| 24 | |||
| 25 | 1 | $this->db_preferenser->spara_preferens("prediktioner.historik", "$justerade_odds, $justerade_streck"); |
|
| 26 | |||
| 27 | 1 | $this->prediktioner->spel->db->logg->logga(self::class . ': ✅ Sparade historik.'); |
|
| 28 | } |
||
| 30 |