Completed
Push — master ( acff3e...b9431c )
by Julien
12:36
created
app/Tournament.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
     protected static function boot()
52 52
     {
53 53
         parent::boot();
54
-        static::deleting(function ($tournament) {
54
+        static::deleting(function($tournament) {
55 55
             $tournament->championships->each->delete();
56 56
             $tournament->invites->each->delete();
57 57
 
58 58
         });
59
-        static::restoring(function ($tournament) {
59
+        static::restoring(function($tournament) {
60 60
             $tournament->championships()->withTrashed()->get()->each->restore();
61 61
         });
62 62
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
     public function buildCategoryList()
362 362
     {
363 363
         $championships = Championship::with('category', 'settings')
364
-            ->whereHas('category', function ($query) {
364
+            ->whereHas('category', function($query) {
365 365
                 return $query->where('isTeam', 1);
366 366
             })
367 367
             ->where('tournament_id', $this->id)
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -300,7 +300,10 @@
 block discarded – undo
300 300
      */
301 301
     public function setAndConfigureCategories($ruleId)
302 302
     {
303
-        if ($ruleId == 0) return; // No Rules Selected
303
+        if ($ruleId == 0) {
304
+            return;
305
+        }
306
+        // No Rules Selected
304 307
 
305 308
         $options = $this->loadRulesOptions($ruleId);
306 309
 
Please login to merge, or discard this patch.
app/Club.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
                 return $query->where('federation_id', $user->federationOwned->id);
115 115
             case
116 116
                 $user->isAssociationPresident() && $user->associationOwned:
117
-                return $query->whereHas('association', function ($query) use ($user) {
117
+                return $query->whereHas('association', function($query) use ($user) {
118 118
                     $query->where('id', $user->associationOwned->id);
119 119
                 });
120 120
             case $user->isClubPresident() && $user->clubOwned:
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,10 +82,12 @@
 block discarded – undo
82 82
      */
83 83
     public function federation()
84 84
     {
85
-        if ($this->association != null)
86
-            return $this->association->federation();
87
-        else
88
-            return $this->association(); //TODO THIS IS BAD :(
85
+        if ($this->association != null) {
86
+                    return $this->association->federation();
87
+        } else {
88
+                    return $this->association();
89
+        }
90
+        //TODO THIS IS BAD :(
89 91
     }
90 92
 
91 93
     /**
Please login to merge, or discard this patch.
app/Notifications/AccountRegistered.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Get the notification's delivery channels.
28 28
      *
29 29
      * @param  mixed $notifiable
30
-     * @return array
30
+     * @return string[]
31 31
      */
32 32
     public function via($notifiable)
33 33
     {
Please login to merge, or discard this patch.
app/Notifications/InviteCompetitor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Get the notification's delivery channels.
28 28
      *
29 29
      * @param  mixed $notifiable
30
-     * @return array
30
+     * @return string[]
31 31
      */
32 32
     public function via($notifiable)
33 33
     {
Please login to merge, or discard this patch.
app/Notifications/RegisteredToChampionship.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Get the notification's delivery channels.
28 28
      *
29 29
      * @param  mixed $notifiable
30
-     * @return array
30
+     * @return string[]
31 31
      */
32 32
     public function via($notifiable)
33 33
     {
Please login to merge, or discard this patch.
app/Policies/TeamPolicy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * Create a new policy instance.
17 17
      * @param User $user
18 18
      * @param $ability
19
-     * @return bool
19
+     * @return boolean|null
20 20
      */
21 21
     public function before(User $user, $ability)
22 22
     {
Please login to merge, or discard this patch.
app/Policies/TournamentPolicy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * Create a new policy instance.
17 17
      * @param User $user
18 18
      * @param $ability
19
-     * @return bool
19
+     * @return boolean|null
20 20
      */
21 21
     public function before(User $user, $ability)
22 22
     {
Please login to merge, or discard this patch.
app/Policies/UserPolicy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * Create a new policy instance.
17 17
      * @param User $user
18 18
      * @param $ability
19
-     * @return bool
19
+     * @return boolean|null
20 20
      */
21 21
     public function before(User $user, $ability)
22 22
     {
Please login to merge, or discard this patch.
app/Http/Controllers/ChampionshipSettingsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Illuminate\Support\Facades\App;
9 9
 use Illuminate\Support\Facades\Auth;
10 10
 use Illuminate\Support\Facades\Response;
11
-use Illuminate\Support\Facades\View;
12 11
 use Xoco70\LaravelTournaments\Models\ChampionshipSettings;
13 12
 
14 13
 class ChampionshipSettingsController extends Controller
Please login to merge, or discard this patch.