@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | $fighter1 = $item->team1 != null ? $item->team1->name : "Bye"; |
6 | 6 | $fighter2 = $item->team2 != null ? $item->team2->name : "Bye"; |
7 | - }else{ |
|
7 | + } else{ |
|
8 | 8 | $fighter1 = $item->competitors->get(0) != null ? $item->competitors->get(0)->user->name : "Bye"; |
9 | 9 | $fighter2 = $item->competitors->get(1) != null ? $item->competitors->get(1)->user->name : "Bye"; |
10 | 10 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param $settings |
|
66 | + * @param ChampionshipSettings $settings |
|
67 | 67 | * @param Championship $championship |
68 | 68 | */ |
69 | 69 | public static function generateFights(Collection $rounds, $settings, Championship $championship = null) |
@@ -247,8 +247,8 @@ discard block |
||
247 | 247 | } |
248 | 248 | |
249 | 249 | /** |
250 | - * @param $usersByArea |
|
251 | - * @param $area |
|
250 | + * @param Collection $usersByArea |
|
251 | + * @param integer $area |
|
252 | 252 | * |
253 | 253 | * @return Collection |
254 | 254 | */ |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | /** |
284 | 284 | * @param $area |
285 | 285 | * @param $fighters |
286 | - * @param $order |
|
286 | + * @param integer $order |
|
287 | 287 | * |
288 | 288 | * @return Round |
289 | 289 | */ |
@@ -149,8 +149,9 @@ |
||
149 | 149 | { |
150 | 150 | |
151 | 151 | |
152 | - if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') |
|
153 | - return $this->settings->alias; |
|
152 | + if ($this->settings != null && $this->settings->alias != null && $this->settings->alias != '') { |
|
153 | + return $this->settings->alias; |
|
154 | + } |
|
154 | 155 | |
155 | 156 | $genders = [ |
156 | 157 | 'M' => trans('categories.male'), |