Passed
Push — master ( a37b13...cfbde9 )
by John
03:42
created
app/Models/AccountModel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
         $ret["solved"]=DB::table("submission")->where([
75 75
             "uid"=>$uid,
76 76
             "verdict"=>"Accepted"
77
-        ])->join("problem","problem.pid","=","submission.pid")->select('pcode')->distinct()->get()->all();
77
+        ])->join("problem", "problem.pid", "=", "submission.pid")->select('pcode')->distinct()->get()->all();
78 78
         $ret["solvedCount"]=count($ret["solved"]);
79
-        $ret["rank"]=Cache::tags(['rank'])->get($ret["uid"],"N/A");
79
+        $ret["rank"]=Cache::tags(['rank'])->get($ret["uid"], "N/A");
80 80
         return $ret;
81 81
     }
82 82
 
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
         $rankIter=1;
88 88
         $rankValue=1;
89 89
         $rankSolved=-1;
90
-        foreach($rankList as $rankItem){
91
-            if($rankSolved!=$rankItem["solvedCount"]){
90
+        foreach ($rankList as $rankItem) {
91
+            if ($rankSolved!=$rankItem["solvedCount"]) {
92 92
                 $rankValue=$rankIter;
93 93
                 $rankSolved=$rankItem["solvedCount"];
94 94
             }
Please login to merge, or discard this patch.