@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | /** |
| 236 | - * @param $roundNumber |
|
| 236 | + * @param integer $roundNumber |
|
| 237 | 237 | */ |
| 238 | 238 | private function assignFightersToBracket($roundNumber) |
| 239 | 239 | { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | /** |
| 259 | 259 | * @param $selected |
| 260 | 260 | * @param $fighter |
| 261 | - * @param $html |
|
| 261 | + * @param string $html |
|
| 262 | 262 | * @return string |
| 263 | 263 | */ |
| 264 | 264 | private function addOptionToSelect($selected, $fighter, $html): string |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Calculate the Byes need to fill the Championship Tree. |
| 17 | - * @param Championship $championship |
|
| 18 | 17 | * @param $fighters |
| 19 | 18 | * @return Collection |
| 20 | 19 | */ |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | if ($this->championship->category->isTeam){ |
| 72 | 72 | $championship = $this->championship->withCount('teams', 'competitors')->find(2); |
| 73 | - }else{ |
|
| 73 | + } else{ |
|
| 74 | 74 | $championship = $this->championship->withCount('teams', 'competitors')->first(); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -90,7 +90,9 @@ discard block |
||
| 90 | 90 | { |
| 91 | 91 | foreach ($fightsByRound as $fight) { |
| 92 | 92 | $parentGroup = $fight->group->parent; |
| 93 | - if ($parentGroup == null) break; |
|
| 93 | + if ($parentGroup == null) { |
|
| 94 | + break; |
|
| 95 | + } |
|
| 94 | 96 | $parentFight = $parentGroup->fights->get(0); //TODO This Might change when extending to Preliminary |
| 95 | 97 | |
| 96 | 98 | // IN this $fight, is c1 or c2 has the info? |
@@ -164,10 +166,14 @@ discard block |
||
| 164 | 166 | */ |
| 165 | 167 | public function hasDeterminedParent() |
| 166 | 168 | { |
| 167 | - if ($this->group->has2Fighters()) return true; |
|
| 169 | + if ($this->group->has2Fighters()) { |
|
| 170 | + return true; |
|
| 171 | + } |
|
| 168 | 172 | foreach ($this->group->children as $child) { |
| 169 | 173 | $fight = $child->fights->get(0); |
| 170 | - if ($fight->has2Fighters()) return false; |
|
| 174 | + if ($fight->has2Fighters()) { |
|
| 175 | + return false; |
|
| 176 | + } |
|
| 171 | 177 | } |
| 172 | 178 | return true; |
| 173 | 179 | } |