Skip to content

Commit 458bf3d

Browse files
committed
v. 0.8.1.3, buggfix andel garderingar System/TT, long method
1 parent 332f67e commit 458bf3d

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/Moduler/TT/HamtaSpikar.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ class HamtaSpikar extends HamtaData {
3838
* Hämta spikar.
3939
*/
4040
protected function hämta_spikar(): void {
41-
/**
42-
* Definiera en tom struktur. Hämta preferens.
43-
*/
4441
$this->spikar = array_fill(
4542
0,
4643
self::TT_MAX_SPIKFÄLT,
@@ -73,17 +70,12 @@ protected function hämta_spikar(): void {
7370

7471
foreach ($this->spikar as $index => $gardering) {
7572
foreach ($gardering as $match) {
76-
/**
77-
* Halvgardering = en ruta tom.
78-
*/
73+
// Halvgardering = en ruta tom.
7974
if (count(array_unique($match)) > 1) {
8075
$this->antal_spikar[$index]++;
8176
}
8277
}
8378

84-
/**
85-
* Villor för garderingar.
86-
*/
8779
if ($this->andel_spikar[$index] > $this->antal_spikar[$index]) {
8880
$this->antal_spikar[$index] = $this->andel_spikar[$index];
8981
}
@@ -94,7 +86,6 @@ protected function hämta_spikar(): void {
9486

9587
/**
9688
* Finns reduktion i preferenser är allt väl.
97-
* Annars sparas en tom datastruktur.
9889
*/
9990
match ($reduktion !== '') {
10091
true => $this->reduktion = array_chunk(explode(',', $reduktion), 3),

0 commit comments

Comments
 (0)