@@ -178,9 +178,9 @@ discard block |
||
| 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 |
||
| 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 | } |