Test Setup Failed
Pull Request — master (#2)
by
unknown
03:46
created
app/Tournament.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Cviebrock\EloquentSluggable\Engines\KoreanEngine;
9 9
 use Cviebrock\EloquentSluggable\Sluggable;
10 10
 use Cviebrock\EloquentSluggable\SluggableScopeHelpers;
11
-use Illuminate\Database\Eloquent\Model;
12 11
 use Illuminate\Database\Eloquent\SoftDeletes;
13 12
 use OwenIt\Auditing\AuditingTrait;
14 13
 use Xoco70\LaravelTournaments\Models\ChampionshipSettings;
Please login to merge, or discard this patch.
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.
app/Association.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     {
82 82
         // Limit association to the same country
83 83
         if (!$user->isSuperAdmin()) {
84
-            $query->whereHas('federation', function ($query) use ($user) {
84
+            $query->whereHas('federation', function($query) use ($user) {
85 85
                 $query->where('country_id', $user->country_id);
86 86
             });
87 87
         }
Please login to merge, or discard this patch.
app/TournamentLevel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public static function getAllPlucked()
19 19
     {
20
-        return Cache::remember('level_pluck', config('constants.GRADE_MINUTES'), function () {
20
+        return Cache::remember('level_pluck', config('constants.GRADE_MINUTES'), function() {
21 21
             return static::pluck('name', 'id');
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
app/Exceptions/InvitationNeededException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 'quote' => trans('msg.invitation_needed'),
14 14
                 'author' => "Admin",
15 15
                 'source' => "",
16
-                'sentryID' => $this->sentryID,]
16
+                'sentryID' => $this->sentryID, ]
17 17
         );
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
app/Exceptions/NotOwningAssociationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 'quote' => trans('msg.you_dont_own_association'),
14 14
                 'author' => trans('msg.please_ask_federationPresident'),
15 15
                 'source' => "",
16
-                'sentryID' => $this->sentryID,]
16
+                'sentryID' => $this->sentryID, ]
17 17
         );
18 18
     }
19 19
 
Please login to merge, or discard this patch.
app/Exceptions/InvitationNotActiveException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
                 'quote' => trans('msg.invitation_used'),
13 13
                 'author' => "Admin",
14 14
                 'source' => "",
15
-                'sentryID' => $this->sentryID,]
15
+                'sentryID' => $this->sentryID, ]
16 16
         );
17 17
     }
18 18
 
Please login to merge, or discard this patch.
app/Exceptions/NotOwningClubException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 'quote' => trans('msg.you_dont_own_club'),
14 14
                 'author' => trans('msg.please_ask_associationPresident'),
15 15
                 'source' => "",
16
-                'sentryID' => $this->sentryID,]
16
+                'sentryID' => $this->sentryID, ]
17 17
         );
18 18
     }
19 19
 
Please login to merge, or discard this patch.
app/Exceptions/NotOwningFederationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 'quote' => trans('msg.you_dont_own_federation'),
14 14
                 'author' => trans('msg.please_ask_superadmin'),
15 15
                 'source' => "",
16
-                'sentryID' => $this->sentryID,]
16
+                'sentryID' => $this->sentryID, ]
17 17
         );
18 18
     }
19 19
 
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
         /*
20 20
          * Authenticate the user's personal channel...
21 21
          */
22
-        Broadcast::channel('App.User.*', function ($user, $userId) {
23
-            return (int)$user->id === (int)$userId;
22
+        Broadcast::channel('App.User.*', function($user, $userId) {
23
+            return (int) $user->id === (int) $userId;
24 24
         });
25 25
     }
26 26
 }
Please login to merge, or discard this patch.