| Conditions | 7 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 7 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 1 | protected function pröva_rad(string $tipsrad_012): bool { |
|
| 22 | 1 | $ok = true; |
|
| 23 | |||
| 24 | 1 | $this->tt->tt_pröva_reduktion and $ok = $this->pröva_reduktion($tipsrad_012); |
|
| 25 | 1 | $ok and $this->pröva_intervall($tipsrad_012); |
|
| 26 | |||
| 27 | 1 | if ($ok && $this->tt->tt_pröva_spikar) { |
|
| 28 | 1 | foreach (array_keys($this->tt->spikar) as $index) { |
|
| 29 | 1 | $ok and $ok = $this->pröva_spikar( |
|
| 30 | 1 | $this->tt->spikar[$index], |
|
| 31 | 1 | $this->tt->andel_spikar[$index], |
|
| 32 | 1 | $tipsrad_012 |
|
| 33 | 1 | ); |
|
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | 1 | return $ok; |
|
| 38 | } |
||
| 51 |