| @@ -81,7 +81,7 @@ | ||
| 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 | } | 
| @@ -99,8 +99,9 @@ | ||
| 99 | 99 | if ($user->isFederationPresident() && | 
| 100 | 100 | $user->federationOwned != null && | 
| 101 | 101 | $this->federation->id == $user->federationOwned->id | 
| 102 | - ) | |
| 103 | - return true; | |
| 102 | +        ) { | |
| 103 | + return true; | |
| 104 | + } | |
| 104 | 105 | return false; | 
| 105 | 106 | } | 
| 106 | 107 | |
| @@ -17,7 +17,7 @@ | ||
| 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 | } | 
| @@ -13,7 +13,7 @@ | ||
| 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 | } | 
| @@ -13,7 +13,7 @@ | ||
| 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 | |
| @@ -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 | } |