| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Prova extends Preferenser { |
||
| 16 | /** |
||
| 17 | * Pröva tipsrad. |
||
| 18 | */ |
||
| 19 | 2 | public function pröva_tipsrad(string $tipsrad_012): bool { |
|
| 20 | 2 | [$x, $y] = $this->graf->tipsgrafskoordinater($tipsrad_012); |
|
| 21 | 2 | foreach ($this->rektanglar as [$x1, $y1, $x2, $y2]) { |
|
| 22 | 2 | if (in($x, $x1, $x2) && in($y, $y1, $y2)) { |
|
| 23 | 2 | return true; |
|
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | return $this->tick(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Annonsera modul. |
||
| 32 | */ |
||
| 33 | 2 | public function annonsera(): string { |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Visa kommentar. |
||
| 40 | */ |
||
| 41 | 1 | public function kommentar(): string { |
|
| 43 | } |
||
| 44 | } |
||
| 45 |