Completed
Push — master ( 84f4be...dc2296 )
by Julien
20:27 queued 05:52
created
app/Http/Controllers/UserController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function export()
152 152
     {
153 153
 
154
-        Excel::create(trans_choice('core.user', 2), function ($excel) {
154
+        Excel::create(trans_choice('core.user', 2), function($excel) {
155 155
             $appName = (app()->environment() == 'local' ? getenv('APP_NAME') : config('app.name'));
156 156
 
157 157
             // Set the title
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
             // Call them separately
165 165
             $excel->setDescription('A list of users');
166
-            $excel->sheet(trans_choice('core.user', 2), function ($sheet) {
166
+            $excel->sheet(trans_choice('core.user', 2), function($sheet) {
167 167
                 //TODO Here we should join grade, role, country to print name not FK
168 168
                 $users = User::all();
169 169
 //                $users = User::with(['grade', 'role'])->get();
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $tournaments = Auth::user()->myTournaments()->with('owner')
180 180
             ->orderBy('created_at', 'desc')
181
-            ->paginate(config('constants.PAGINATION'));;
181
+            ->paginate(config('constants.PAGINATION')); ;
182 182
 
183 183
         $title = trans('core.tournaments_registered');
184 184
 
Please login to merge, or discard this patch.
app/Http/Controllers/FightController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
app/Http/Controllers/UserAvatarController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             ->store(config('constants.RELATIVE_AVATAR_PATH'), 'public');
22 22
 
23 23
         Image::make(storage_path('app/public/' . $file))
24
-            ->resize(200, 200, function ($constraint) {
24
+            ->resize(200, 200, function($constraint) {
25 25
                 $constraint->aspectRatio();
26 26
                 $constraint->upsize();
27 27
             })
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function index()
27 27
     {
28 28
         $openTournaments = Tournament::with('owner')
29
-            ->whereHas('owner', function ($query) {
29
+            ->whereHas('owner', function($query) {
30 30
                 $query->where('country_id', Auth::user()->country_id);
31 31
             })
32 32
             ->where('type', config('constants.OPEN_TOURNAMENT'))
Please login to merge, or discard this patch.
app/Http/Controllers/InviteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $tournament = Tournament::where('slug', $request->tournamentSlug)->first();
99 99
         // Parse Csv File
100 100
 
101
-        $reader = Excel::load("storage/app/" . $file, function ($reader) {
101
+        $reader = Excel::load("storage/app/" . $file, function($reader) {
102 102
         })->get();
103 103
 
104 104
         // Checking if malformed email
Please login to merge, or discard this patch.
app/Http/helpers.php 1 patch
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,7 @@
 block discarded – undo
32 32
     $clean = ($anal) ? preg_replace("/[^a-zA-Z0-9]/", "", $clean) : $clean;
33 33
     return ($force_lowercase) ?
34 34
         (function_exists('mb_strtolower')) ?
35
-            mb_strtolower($clean, 'UTF-8') :
36
-            strtolower($clean) :
37
-        $clean;
35
+            mb_strtolower($clean, 'UTF-8') : strtolower($clean) : $clean;
38 36
 }
39 37
 
40 38
 function isJapanese($lang)
Please login to merge, or discard this patch.
app/Grade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
 
18 18
     public static function getAll()
19 19
     {
20
-        return Cache::remember('grades', config('constants.GRADE_MINUTES'), function () {
20
+        return Cache::remember('grades', config('constants.GRADE_MINUTES'), function() {
21 21
             return static::all();
22 22
         });
23 23
     }
24 24
 
25 25
     public static function getAllPlucked()
26 26
     {
27
-        return Cache::remember('grades_pluck', config('constants.GRADE_MINUTES'), function () {
27
+        return Cache::remember('grades_pluck', config('constants.GRADE_MINUTES'), function() {
28 28
             return static::pluck('name', 'id');
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
app/Invite.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
     public static function sendInvites($reader, $tournament)
39 39
     {
40
-        $reader->each(function ($sheet) use ($tournament) {
40
+        $reader->each(function($sheet) use ($tournament) {
41 41
             // Loop through all rows of spreadsheet
42
-            $sheet->each(function ($row) use ($tournament) {
42
+            $sheet->each(function($row) use ($tournament) {
43 43
                 // Check email
44 44
                 $invite = new Invite();
45 45
                 $code = $invite->generateTournamentInvite($row, $tournament);
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function checkBadEmailsInExcel($reader, $tournament)
120 120
     {
121
-        $reader->each(function ($sheet) use ($tournament) {
121
+        $reader->each(function($sheet) use ($tournament) {
122 122
             // Loop through all rows
123
-            $sheet->each(function ($row) use ($tournament) {
123
+            $sheet->each(function($row) use ($tournament) {
124 124
                 // Check email
125 125
                 if (!filter_var($row, FILTER_VALIDATE_EMAIL)) {
126 126
                     $this->emailBadFormat = true;
Please login to merge, or discard this patch.
app/Country.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 
14 14
     public static function getAll()
15 15
     {
16
-        return Cache::remember('countries', config('constants.GRADE_MINUTES'), function () {
16
+        return Cache::remember('countries', config('constants.GRADE_MINUTES'), function() {
17 17
             return static::all();
18 18
         });
19 19
     }
20 20
 
21 21
     public static function getAllPlucked()
22 22
     {
23
-        return Cache::remember('countries_pluck', config('constants.GRADE_MINUTES'), function () {
23
+        return Cache::remember('countries_pluck', config('constants.GRADE_MINUTES'), function() {
24 24
             return static::pluck('name', 'id');
25 25
         });
26 26
     }
Please login to merge, or discard this patch.