Passed
Push — master ( ff5350...80d78f )
by John
04:36 queued 48s
created
app/Models/ProblemModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -178,9 +178,9 @@  discard block
 block discarded – undo
178 178
 
179 179
     private function inteliAudit($uid, $content)
180 180
     {
181
-        if (strpos($content, '```')!==false){
181
+        if (strpos($content, '```')!==false) {
182 182
             $userSolutionHistory=DB::table("problem_solution")->where(['uid'=>$uid])->orderByDesc('updated_at')->first();
183
-            if (!empty($userSolutionHistory) && $userSolutionHistory["audit"]==1){
183
+            if (!empty($userSolutionHistory) && $userSolutionHistory["audit"]==1) {
184 184
                 return 1;
185 185
             }
186 186
         }
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
                     'pid'=>$pid,
480 480
                     'sample_input'=>$d['sample_input'],
481 481
                     'sample_output'=>$d['sample_output'],
482
-                    'sample_note'=>isset($d['sample_note'])?$d['sample_note']:null,
482
+                    'sample_note'=>isset($d['sample_note']) ? $d['sample_note'] : null,
483 483
                 ]);
484 484
             }
485 485
         }
Please login to merge, or discard this patch.