@@ -23,11 +23,11 @@  | 
                                                    ||
| 23 | 23 |      { | 
                                                        
| 24 | 24 | parent::boot();  | 
                                                        
| 25 | 25 | |
| 26 | -        static::deleting(function ($championship) { | 
                                                        |
| 26 | +        static::deleting(function($championship) { | 
                                                        |
| 27 | 27 | $championship->competitors()->delete();  | 
                                                        
| 28 | 28 | $championship->settings()->delete();  | 
                                                        
| 29 | 29 | });  | 
                                                        
| 30 | -        static::restoring(function ($championship) { | 
                                                        |
| 30 | +        static::restoring(function($championship) { | 
                                                        |
| 31 | 31 | $championship->competitors()->restore();  | 
                                                        
| 32 | 32 | $championship->settings()->restore();  | 
                                                        
| 33 | 33 | });  | 
                                                        
@@ -56,7 +56,7 @@ discard block  | 
                                                    ||
| 56 | 56 | private function getMaxFightersByEntity($userGroups): int  | 
                                                        
| 57 | 57 |      { | 
                                                        
| 58 | 58 | return $userGroups  | 
                                                        
| 59 | -            ->sortByDesc(function ($group) { | 
                                                        |
| 59 | +            ->sortByDesc(function($group) { | 
                                                        |
| 60 | 60 | return $group->count();  | 
                                                        
| 61 | 61 | })  | 
                                                        
| 62 | 62 | ->first()  | 
                                                        
@@ -92,7 +92,7 @@ discard block  | 
                                                    ||
| 92 | 92 | protected function getTreeSize($fighterCount, $groupSize)  | 
                                                        
| 93 | 93 |      { | 
                                                        
| 94 | 94 | $square = collect([1, 2, 4, 8, 16, 32, 64]);  | 
                                                        
| 95 | -        $squareMultiplied = $square->map(function ($item, $key) use ($groupSize) { | 
                                                        |
| 95 | +        $squareMultiplied = $square->map(function($item, $key) use ($groupSize) { | 
                                                        |
| 96 | 96 | return $item * $groupSize;  | 
                                                        
| 97 | 97 | });  | 
                                                        
| 98 | 98 | |
@@ -47,7 +47,7 @@ discard block  | 
                                                    ||
| 47 | 47 | |
| 48 | 48 | /**  | 
                                                        
| 49 | 49 | * Get the biggest entity group  | 
                                                        
| 50 | - * @param $userGroups  | 
                                                        |
| 50 | + * @param Collection $userGroups  | 
                                                        |
| 51 | 51 | *  | 
                                                        
| 52 | 52 | * @return int  | 
                                                        
| 53 | 53 | */  | 
                                                        
@@ -104,7 +104,7 @@ discard block  | 
                                                    ||
| 104 | 104 | |
| 105 | 105 | /**  | 
                                                        
| 106 | 106 | * Repart BYE in the tree,  | 
                                                        
| 107 | - * @param $fighterGroups  | 
                                                        |
| 107 | + * @param Collection $fighterGroups  | 
                                                        |
| 108 | 108 | * @param int $max  | 
                                                        
| 109 | 109 | *  | 
                                                        
| 110 | 110 | * @return Collection  | 
                                                        
@@ -185,9 +185,9 @@ discard block  | 
                                                    ||
| 185 | 185 | }  | 
                                                        
| 186 | 186 | |
| 187 | 187 | /**  | 
                                                        
| 188 | - * @param $area  | 
                                                        |
| 189 | - * @param $order  | 
                                                        |
| 190 | - * @param $round  | 
                                                        |
| 188 | + * @param integer $area  | 
                                                        |
| 189 | + * @param integer $order  | 
                                                        |
| 190 | + * @param integer $round  | 
                                                        |
| 191 | 191 | * @param $parent  | 
                                                        
| 192 | 192 | * @return FightersGroup  | 
                                                        
| 193 | 193 | */  |