@@ -12,7 +12,7 @@ |
||
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 |
@@ -13,7 +13,7 @@ |
||
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 |
@@ -122,8 +122,9 @@ |
||
122 | 122 | break; |
123 | 123 | } |
124 | 124 | |
125 | - if ($exception instanceof MaintenanceModeException) |
|
126 | - return response()->view('errors.503'); |
|
125 | + if ($exception instanceof MaintenanceModeException) { |
|
126 | + return response()->view('errors.503'); |
|
127 | + } |
|
127 | 128 | |
128 | 129 | |
129 | 130 | return response()->view('errors.general', |
@@ -13,7 +13,7 @@ |
||
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 |
@@ -19,8 +19,8 @@ |
||
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 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | Route::group([ |
58 | 58 | 'middleware' => 'web', |
59 | 59 | 'namespace' => $this->namespace, |
60 | - ], function ($router) { |
|
60 | + ], function($router) { |
|
61 | 61 | require base_path('routes/web.php'); |
62 | 62 | }); |
63 | 63 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | 'prefix' => 'api', |
79 | 79 | 'as' => 'api.', |
80 | 80 | |
81 | - ], function ($router) { |
|
81 | + ], function($router) { |
|
82 | 82 | require base_path('routes/api.php'); |
83 | 83 | }); |
84 | 84 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | protected static function boot() |
8 | 8 | { |
9 | 9 | parent::boot(); |
10 | - static::deleting(function ($team) { |
|
10 | + static::deleting(function($team) { |
|
11 | 11 | $teams = Team::where('championship_id', $team->championship_id) |
12 | 12 | ->where('id', '>', $team->id)->get(); |
13 | 13 | foreach ($teams as $team) { |
@@ -32,8 +32,9 @@ |
||
32 | 32 | |
33 | 33 | public function getInvite(Tournament $tournament) |
34 | 34 | { |
35 | - if ($this->invite != 0) |
|
36 | - return Invite::findOrFail($this->invite); |
|
35 | + if ($this->invite != 0) { |
|
36 | + return Invite::findOrFail($this->invite); |
|
37 | + } |
|
37 | 38 | |
38 | 39 | return Invite::where('code', 'open') |
39 | 40 | ->where('email', Auth::user()->email) |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function index(Request $request) |
17 | 17 | { |
18 | 18 | $grades = Grade::getAllPlucked(); |
19 | - $tournament = Tournament::with(['championships.firstRoundFights' => function ($query) { |
|
19 | + $tournament = Tournament::with(['championships.firstRoundFights' => function($query) { |
|
20 | 20 | $query->with(['competitor1.user', 'competitor2.user', 'team1', 'team2']); |
21 | 21 | }])->where('slug', $request->tournament) |
22 | 22 | ->first(); |