| Conditions | 2 |
| Paths | 2 |
| Total Lines | 31 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function tt_grid_matcher(): string { |
||
| 28 | $matchtabeller = (new Matchtabeller($this->tt))->matchtabeller(); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Bygg tabellhuvud för spikar. |
||
| 32 | */ |
||
| 33 | $th_rad = ''; |
||
| 34 | for ($j = 0; $j < $this->tt::TT_MAX_SPIKFÄLT; $j++) { |
||
|
|
|||
| 35 | $th_rad .= <<< EOT |
||
| 36 | <th colspan="3" class="match"><input tabindex="-1" style="width: 3em;" type="number" min="0" max="13" step="1" name="tt_andel_spikar[$j]" value="{$this->tt->andel_spikar[$j]}">/{$this->tt->antal_spikar[$j]}</th> |
||
| 37 | |||
| 38 | EOT; |
||
| 39 | } |
||
| 40 | |||
| 41 | $scheman = new TTGridScheman(); |
||
| 42 | return <<< EOT |
||
| 43 | <div> |
||
| 44 | <table id="topptipstabell" class="topptipstabell"> |
||
| 45 | <tr> |
||
| 46 | <th class="match">#</th> |
||
| 47 | <th class="match">Match</th> |
||
| 48 | <th class="match">E</th> |
||
| 49 | $th_rad <th colspan="3"><span id="tt_antal_helgarderingar"></span> H | h <span id="tt_antal_halvgarderingar"></span></th> |
||
| 50 | <th class="match">🡄</th> |
||
| 51 | <th class="match">🞭</th> |
||
| 52 | <th class="match">🔻</th> |
||
| 53 | </tr> |
||
| 54 | {$matchtabeller[0]} </table> |
||
| 55 | </div> |
||
| 56 | {$scheman->tt_grid_scheman()} |
||
| 57 | {$this->matchdataform($matchtabeller[1])} |
||
| 58 | |||
| 62 |