Completed
Pull Request — master (#14)
by he
12:12
created
app/Support/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@
 block discarded – undo
67 67
 if (!function_exists('display_penalize_time')) {
68 68
     function display_penalize_time($seconds)
69 69
     {
70
-        $hour = (int)($seconds / (Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR));
70
+        $hour = (int) ($seconds / (Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR));
71 71
         $seconds -= $hour * Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR;
72
-        $minute = (int)($seconds / Carbon::SECONDS_PER_MINUTE);
72
+        $minute = (int) ($seconds / Carbon::SECONDS_PER_MINUTE);
73 73
         $leftSeconds = $seconds % Carbon::SECONDS_PER_MINUTE;
74 74
 
75 75
         return sprintf('%d:%02d:%02d', $hour, $minute, $leftSeconds);
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ProblemController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         if ($problem) {
41 41
             $dp = app(DataProvider::class);
42 42
 
43
-            $path = $dp->getDataPath($id) . $name;
43
+            $path = $dp->getDataPath($id).$name;
44 44
             return response()->download($path, $name);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
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/Entities/Problem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      */
74 74
     public function isSpecialJudge()
75 75
     {
76
-        return (int)$this->spj === 1;
76
+        return (int) $this->spj === 1;
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.