Passed
Push — master ( 46c2f1...d9d3cc )
by John
05:30
created
app/Http/Middleware/TrustProxies.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
      *
20 20
      * @var int
21 21
      */
22
-    protected $headers = Request::HEADER_X_FORWARDED_ALL;
22
+    protected $headers=Request::HEADER_X_FORWARDED_ALL;
23 23
 }
Please login to merge, or discard this patch.
app/Http/Controllers/OAuth/AAuthController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                 if (config('app.allow_oauth_temp_account')) {
81 81
                     try {
82 82
                         $createdUser=User::create([
83
-                            'name' => $aauth_user->name."#".substr($aauth_user->id , 0 , 4),
83
+                            'name' => $aauth_user->name."#".substr($aauth_user->id, 0, 4),
84 84
                             'email' => Str::random(16)."@temporary.email",
85 85
                             'password' => '',
86 86
                             'avatar' => '/static/img/avatar/default.png',
Please login to merge, or discard this patch.
app/Models/ProblemModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
         $preQuery=DB::table($this->table)->where('hide', '=', 0);
297 297
         if ($filter['oj']) {
298 298
             $OJ=OJ::find($filter['oj']);
299
-            if(blank($OJ) || !$OJ->status) {
299
+            if (blank($OJ) || !$OJ->status) {
300 300
                 return null;
301 301
             }
302 302
             $preQuery=$preQuery->where(["OJ"=>$filter['oj']]);
Please login to merge, or discard this patch.
app/Models/Eloquent/Tool/MonacoTheme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
 
300 300
     public static function getTheme($id) {
301 301
         if (!isset(self::$theme[$id])) {
302
-            if(isset(self::$theme[config('app.editor_theme')])){
302
+            if (isset(self::$theme[config('app.editor_theme')])) {
303 303
                 return self::$theme[config('app.editor_theme')];
304 304
             }
305 305
             return self::$theme['material-design-darker'];
Please login to merge, or discard this patch.
app/Models/AccountModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
                 Cache::tags(['bing', 'pic'])->put(date("Y-m-d"), "/static/img/themes/bing/".date("Y-m-d").".jpg");
126 126
             }
127 127
             $ret["image"]=Cache::tags(['bing', 'pic'])->get(date("Y-m-d"));
128
-        } catch(Exception $e) {
128
+        } catch (Exception $e) {
129 129
             $ret["image"]="/static/img/themes/material.png";
130 130
         }
131 131
         return $ret;
Please login to merge, or discard this patch.