| @@ -157,8 +157,9 @@ | ||
| 157 | 157 | |
| 158 | 158 | public function buildName() | 
| 159 | 159 |      { | 
| 160 | - if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') | |
| 161 | - return $this->settings->alias; | |
| 160 | +        if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') { | |
| 161 | + return $this->settings->alias; | |
| 162 | + } | |
| 162 | 163 | |
| 163 | 164 |          if ($this->hasNoCustomSettings()) { | 
| 164 | 165 | return $this->category->name; | 
| @@ -64,7 +64,7 @@ | ||
| 64 | 64 | |
| 65 | 65 | /** | 
| 66 | 66 | * @param Collection $fightersGroup | 
| 67 | - * @param $settings | |
| 67 | + * @param ChampionshipSettings $settings | |
| 68 | 68 | */ | 
| 69 | 69 | public static function generateFights(Collection $fightersGroup, $settings, Championship $championship = null) | 
| 70 | 70 |      { | 
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | |
| 7 | 7 | $fighter1 = $item->team1 != null ? $item->team1->name : "Bye"; | 
| 8 | 8 | $fighter2 = $item->team2 != null ? $item->team2->name : "Bye"; | 
| 9 | -    }else{ | |
| 9 | +    } else{ | |
| 10 | 10 | $fighter1 = $item->competitors->get(0) != null ? $item->competitors->get(0)->user->name : "Bye"; | 
| 11 | 11 | $fighter2 = $item->competitors->get(1) != null ? $item->competitors->get(1)->user->name : "Bye"; | 
| 12 | 12 | |
| @@ -56,7 +56,9 @@ | ||
| 56 | 56 | $matches = array_chunk($teams, 2); | 
| 57 | 57 | |
| 58 | 58 | //If there's already a match in the match array, then that means the next round is round 2, so increase the round number | 
| 59 | - if (count($this->brackets)) $roundNumber++; | |
| 59 | +        if (count($this->brackets)) { | |
| 60 | + $roundNumber++; | |
| 61 | + } | |
| 60 | 62 | |
| 61 | 63 | $countMatches = count($matches); | 
| 62 | 64 | //Create the first full round of teams, some may be blank if waiting on the results of a previous round | 
| @@ -252,8 +252,9 @@ discard block | ||
| 252 | 252 | } | 
| 253 | 253 | |
| 254 | 254 | /** | 
| 255 | - * @param $usersByArea | |
| 256 | - * @param $area | |
| 255 | + * @param Collection $usersByArea | |
| 256 | + * @param integer $area | |
| 257 | + * @param integer $round | |
| 257 | 258 | * | 
| 258 | 259 | */ | 
| 259 | 260 | public function generateGroupsForRound($usersByArea, $area, $round) | 
| @@ -283,7 +284,7 @@ discard block | ||
| 283 | 284 | /** | 
| 284 | 285 | * @param $area | 
| 285 | 286 | * @param $fighters | 
| 286 | - * @param $order | |
| 287 | + * @param integer $order | |
| 287 | 288 | * @param $round | 
| 288 | 289 | * @return FightersGroup | 
| 289 | 290 | */ | 
| @@ -46,7 +46,7 @@ | ||
| 46 | 46 |              if (sizeof($fighters) == 0){ // If | 
| 47 | 47 | $fighters->push(new Competitor()); | 
| 48 | 48 | $fighters->push(new Competitor()); | 
| 49 | -            }else if (count($fighters) % 2 != 0) { // If fighter is not pair, add a BYE | |
| 49 | +            } else if (count($fighters) % 2 != 0) { // If fighter is not pair, add a BYE | |
| 50 | 50 | $fighters->push(new Competitor()); | 
| 51 | 51 | } | 
| 52 | 52 | |