Test Setup Failed
Pull Request — master (#14)
by he
07:42
created
app/Services/Ranking.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
         /** @var $result Team[] */
65 65
         $result = array_values($this->teams);
66
-        usort($result, function ($team1, $team2) {
66
+        usort($result, function($team1, $team2) {
67 67
             return !$this->isBetter($team1, $team2);
68 68
         });
69 69
 
Please login to merge, or discard this patch.
app/Console/Commands/Migrations/LoginLogMigration.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,15 +44,15 @@
 block discarded – undo
44 44
     {
45 45
         $now = Carbon::now()->subDays($days)->setTime(0, 0);
46 46
         $logs = $this->getTable()->where('user_id', $user->username)
47
-                     ->where('time', $now, '>')
48
-                     ->orderBy('time', 'asc')
49
-                     ->get();
47
+                        ->where('time', $now, '>')
48
+                        ->orderBy('time', 'asc')
49
+                        ->get();
50 50
 
51 51
         if ($logs->count() < 10) {
52 52
             $logs = $this->getTable()->where('user_id', $user->username)
53
-                         ->limit(10)
54
-                         ->orderBy('time', 'desc')
55
-                         ->get();
53
+                            ->limit(10)
54
+                            ->orderBy('time', 'desc')
55
+                            ->get();
56 56
             $logs = $logs->reverse();
57 57
         }
58 58
 
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     {
59 59
         Route::prefix('judge')
60 60
             // ->middleware('judge')
61
-             ->namespace($this->namespace)
62
-             ->group(base_path('routes/judge.php'));
61
+                ->namespace($this->namespace)
62
+                ->group(base_path('routes/judge.php'));
63 63
     }
64 64
 
65 65
     /**
@@ -72,15 +72,15 @@  discard block
 block discarded – undo
72 72
     protected function mapWebRoutes()
73 73
     {
74 74
         Route::middleware('web')
75
-             ->namespace($this->namespace)
76
-             ->group(base_path('routes/web.php'));
75
+                ->namespace($this->namespace)
76
+                ->group(base_path('routes/web.php'));
77 77
     }
78 78
 
79 79
     private function mapAdminRoutes()
80 80
     {
81 81
         Route::prefix('admin')
82
-             ->middleware('admin')
83
-             ->namespace($this->namespace)
84
-             ->group(base_path('routes/admin.php'));
82
+                ->middleware('admin')
83
+                ->namespace($this->namespace)
84
+                ->group(base_path('routes/admin.php'));
85 85
     }
86 86
 }
Please login to merge, or discard this patch.