@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @var string |
16 | 16 | */ |
17 | - protected $signature = 'babel:syncpro {extension : The package name of the extension} {--vcid= : The target contest of the Crawler} {--gid= : The holding group} {--cid= : The contest in NOJ}'; |
|
17 | + protected $signature='babel:syncpro {extension : The package name of the extension} {--vcid= : The target contest of the Crawler} {--gid= : The holding group} {--cid= : The contest in NOJ}'; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * The console command description. |
21 | 21 | * |
22 | 22 | * @var string |
23 | 23 | */ |
24 | - protected $description = 'Crawl contests for a given Babel Extension to NOJ'; |
|
24 | + protected $description='Crawl contests for a given Babel Extension to NOJ'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Create a new command instance. |
@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function handle() |
42 | 42 | { |
43 | - $extension = $this->argument('extension'); |
|
44 | - $vcid = $this->option('vcid'); |
|
45 | - $gid = $this->option('gid'); |
|
46 | - $cid = $this->option('cid'); |
|
47 | - $className = "App\\Babel\\Extension\\$extension\\Synchronizer"; |
|
48 | - $all_data = [ |
|
43 | + $extension=$this->argument('extension'); |
|
44 | + $vcid=$this->option('vcid'); |
|
45 | + $gid=$this->option('gid'); |
|
46 | + $cid=$this->option('cid'); |
|
47 | + $className="App\\Babel\\Extension\\$extension\\Synchronizer"; |
|
48 | + $all_data=[ |
|
49 | 49 | 'oj'=>$extension, |
50 | 50 | 'vcid'=>$vcid, |
51 | 51 | 'gid'=>$gid, |
52 | 52 | 'cid'=>$cid, |
53 | 53 | ]; |
54 | - $Sync = new $className($all_data); |
|
54 | + $Sync=new $className($all_data); |
|
55 | 55 | $Sync->scheduleCrawl(); |
56 | 56 | } |
57 | 57 | } |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @var string |
16 | 16 | */ |
17 | - protected $signature = 'babel:update {extension : The package name of the extension}'; |
|
17 | + protected $signature='babel:update {extension : The package name of the extension}'; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * The console command description. |
21 | 21 | * |
22 | 22 | * @var string |
23 | 23 | */ |
24 | - protected $description = 'Update a given Babel Extension to NOJ'; |
|
24 | + protected $description='Update a given Babel Extension to NOJ'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Create a new command instance. |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function handle() |
42 | 42 | { |
43 | - $extension = $this->argument('extension'); |
|
44 | - $output = new BufferedOutput(); |
|
43 | + $extension=$this->argument('extension'); |
|
44 | + $output=new BufferedOutput(); |
|
45 | 45 | $this->line("Updating <fg=green>$extension</>"); |
46 | 46 | try { |
47 | 47 | $BabelConfig=json_decode(file_get_contents(babel_path("Extension/$extension/babel.json")), true); |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | if (!is_dir($dir)) { |
91 | 91 | return; |
92 | 92 | } |
93 | - $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
|
94 | - $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
|
93 | + $it=new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
|
94 | + $files=new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
|
95 | 95 | foreach ($files as $file) { |
96 | 96 | if ($file->isDir()) { |
97 | 97 | rmdir($file->getRealPath()); |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @var string |
16 | 16 | */ |
17 | - protected $signature = 'babel:require {extension : The package name of the extension} {--exception}'; |
|
17 | + protected $signature='babel:require {extension : The package name of the extension} {--exception}'; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * The console command description. |
21 | 21 | * |
22 | 22 | * @var string |
23 | 23 | */ |
24 | - protected $description = 'Download a given Babel Extension to NOJ'; |
|
24 | + protected $description='Download a given Babel Extension to NOJ'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Create a new command instance. |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function handle() |
42 | 42 | { |
43 | - $extension = $this->argument('extension'); |
|
44 | - $exception = $this->option('exception'); |
|
45 | - $output = new BufferedOutput(); |
|
43 | + $extension=$this->argument('extension'); |
|
44 | + $exception=$this->option('exception'); |
|
45 | + $output=new BufferedOutput(); |
|
46 | 46 | if (is_dir(babel_path("Extension/$extension/"))) { |
47 | 47 | if (!$exception) { |
48 | 48 | $this->line("\n <bg=red;fg=white> Exception </> : <fg=yellow>An extension named <fg=green>$extension</> already took place, did you mean <fg=green>php artisan bable:update $extension</>?</>\n"); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | mkdir(babel_path("Tmp/$extension/")); |
75 | 75 | } |
76 | 76 | try { |
77 | - $zipFile = new ZipFile(); |
|
77 | + $zipFile=new ZipFile(); |
|
78 | 78 | $zipFile->openFile(babel_path("Tmp/$filename"))->extractTo(babel_path("Tmp/$extension/"))->close(); |
79 | 79 | $babelPath=glob_recursive(babel_path("Tmp/$extension/babel.json")); |
80 | 80 | if (empty($babelPath)) { |
@@ -123,8 +123,8 @@ discard block |
||
123 | 123 | if (!is_dir($dir)) { |
124 | 124 | return; |
125 | 125 | } |
126 | - $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
|
127 | - $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
|
126 | + $it=new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
|
127 | + $files=new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
|
128 | 128 | foreach ($files as $file) { |
129 | 129 | if ($file->isDir()) { |
130 | 130 | rmdir($file->getRealPath()); |
@@ -12,14 +12,14 @@ discard block |
||
12 | 12 | * |
13 | 13 | * @var string |
14 | 14 | */ |
15 | - protected $signature = 'babel:uninstall {extension : The package name of the extension}'; |
|
15 | + protected $signature='babel:uninstall {extension : The package name of the extension}'; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * The console command description. |
19 | 19 | * |
20 | 20 | * @var string |
21 | 21 | */ |
22 | - protected $description = 'Uninstall a given Babel Extension to NOJ'; |
|
22 | + protected $description='Uninstall a given Babel Extension to NOJ'; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Create a new command instance. |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function handle() |
40 | 40 | { |
41 | - $extension = $this->argument('extension'); |
|
41 | + $extension=$this->argument('extension'); |
|
42 | 42 | $submitter=self::create($extension, $this); |
43 | 43 | if (!is_null($submitter)) { |
44 | 44 | $submitter->uninstall(); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } catch (ErrorException $e) { |
57 | 57 | } catch (Exception $e) { |
58 | 58 | } |
59 | - $className = "App\\Babel\\Extension\\$oj\\$installerProvider"; |
|
59 | + $className="App\\Babel\\Extension\\$oj\\$installerProvider"; |
|
60 | 60 | if (class_exists($className)) { |
61 | 61 | return new $className($class); |
62 | 62 | } else { |
@@ -20,22 +20,22 @@ discard block |
||
20 | 20 | 'cid' => 'required|integer', |
21 | 21 | 'uid' => 'required|integer' |
22 | 22 | ]); |
23 | - $cid = $request->input('cid'); |
|
24 | - $uid = $request->input('uid'); |
|
23 | + $cid=$request->input('cid'); |
|
24 | + $uid=$request->input('uid'); |
|
25 | 25 | |
26 | - $groupModel = new GroupModel(); |
|
27 | - $contestModel = new ContestModel(); |
|
26 | + $groupModel=new GroupModel(); |
|
27 | + $contestModel=new ContestModel(); |
|
28 | 28 | |
29 | - $contest_info = $contestModel->basic($cid); |
|
30 | - if($contestModel->judgeClearance($cid,Auth::user()->id) != 3){ |
|
29 | + $contest_info=$contestModel->basic($cid); |
|
30 | + if ($contestModel->judgeClearance($cid, Auth::user()->id)!=3) { |
|
31 | 31 | return ResponseModel::err(2001); |
32 | 32 | } |
33 | 33 | |
34 | - if($groupModel->judgeClearance($contest_info['gid'],$uid) < 2){ |
|
34 | + if ($groupModel->judgeClearance($contest_info['gid'], $uid)<2) { |
|
35 | 35 | return ResponseModel::err(7004); |
36 | 36 | } |
37 | 37 | |
38 | - $contestModel->assignMember($cid,$uid); |
|
38 | + $contestModel->assignMember($cid, $uid); |
|
39 | 39 | return ResponseModel::success(200); |
40 | 40 | } |
41 | 41 | |
@@ -44,30 +44,30 @@ discard block |
||
44 | 44 | $request->validate([ |
45 | 45 | 'cid' => 'required|integer', |
46 | 46 | ]); |
47 | - $cid = $request->input('cid'); |
|
47 | + $cid=$request->input('cid'); |
|
48 | 48 | |
49 | - $contestModel = new ContestModel(); |
|
50 | - $groupModel = new GroupModel(); |
|
49 | + $contestModel=new ContestModel(); |
|
50 | + $groupModel=new GroupModel(); |
|
51 | 51 | |
52 | - $contest_problems = $contestModel->problems($cid); |
|
53 | - $contest_detail = $contestModel->basic($cid); |
|
54 | - $contest_detail['problems'] = $contest_problems; |
|
55 | - $assign_uid = $contest_detail['assign_uid']; |
|
56 | - $clearance = $contestModel->judgeClearance($cid,Auth::user()->id); |
|
57 | - if($clearance != 3){ |
|
52 | + $contest_problems=$contestModel->problems($cid); |
|
53 | + $contest_detail=$contestModel->basic($cid); |
|
54 | + $contest_detail['problems']=$contest_problems; |
|
55 | + $assign_uid=$contest_detail['assign_uid']; |
|
56 | + $clearance=$contestModel->judgeClearance($cid, Auth::user()->id); |
|
57 | + if ($clearance!=3) { |
|
58 | 58 | return ResponseModel::err(2001); |
59 | 59 | } |
60 | - if($assign_uid != 0){ |
|
61 | - $assignee = $groupModel->userProfile($assign_uid,$contest_detail['gid']); |
|
62 | - }else{ |
|
63 | - $assignee = null; |
|
60 | + if ($assign_uid!=0) { |
|
61 | + $assignee=$groupModel->userProfile($assign_uid, $contest_detail['gid']); |
|
62 | + } else { |
|
63 | + $assignee=null; |
|
64 | 64 | } |
65 | - $ret = [ |
|
65 | + $ret=[ |
|
66 | 66 | 'contest_info' => $contest_detail, |
67 | 67 | 'assignee' => $assignee, |
68 | - 'is_admin' => $clearance == 3, |
|
68 | + 'is_admin' => $clearance==3, |
|
69 | 69 | ]; |
70 | - return ResponseModel::success(200,null,$ret); |
|
70 | + return ResponseModel::success(200, null, $ret); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | public function rejudge(Request $request) |
@@ -101,15 +101,15 @@ discard block |
||
101 | 101 | 'end_time' => 'required|date|after:begin_time', |
102 | 102 | 'description' => 'string' |
103 | 103 | ]); |
104 | - $all_data = $request->all(); |
|
105 | - $cid = $all_data['cid']; |
|
104 | + $all_data=$request->all(); |
|
105 | + $cid=$all_data['cid']; |
|
106 | 106 | |
107 | - $contestModel = new ContestModel(); |
|
108 | - if($contestModel->judgeClearance($all_data['cid'],Auth::user()->id) != 3){ |
|
107 | + $contestModel=new ContestModel(); |
|
108 | + if ($contestModel->judgeClearance($all_data['cid'], Auth::user()->id)!=3) { |
|
109 | 109 | return ResponseModel::err(2001); |
110 | 110 | } |
111 | 111 | |
112 | - if($contestModel->remainingTime($cid) > 0){ |
|
112 | + if ($contestModel->remainingTime($cid)>0) { |
|
113 | 113 | $problems=explode(",", $all_data["problems"]); |
114 | 114 | if (count($problems)>26) { |
115 | 115 | return ResponseModel::err(4002); |
@@ -126,32 +126,32 @@ discard block |
||
126 | 126 | ]; |
127 | 127 | } |
128 | 128 | } |
129 | - $allow_update = ['name','description','begin_time','end_time']; |
|
129 | + $allow_update=['name', 'description', 'begin_time', 'end_time']; |
|
130 | 130 | |
131 | - foreach($all_data as $key => $value){ |
|
132 | - if(!in_array($key,$allow_update)){ |
|
131 | + foreach ($all_data as $key => $value) { |
|
132 | + if (!in_array($key, $allow_update)) { |
|
133 | 133 | unset($all_data[$key]); |
134 | 134 | } |
135 | 135 | } |
136 | - $contestModel->contestUpdate($cid,$all_data,$problemSet); |
|
136 | + $contestModel->contestUpdate($cid, $all_data, $problemSet); |
|
137 | 137 | return ResponseModel::success(200); |
138 | - }else{ |
|
139 | - $allow_update = ['name','description']; |
|
138 | + } else { |
|
139 | + $allow_update=['name', 'description']; |
|
140 | 140 | |
141 | - foreach($all_data as $key => $value){ |
|
142 | - if(!in_array($key,$allow_update)){ |
|
141 | + foreach ($all_data as $key => $value) { |
|
142 | + if (!in_array($key, $allow_update)) { |
|
143 | 143 | unset($all_data[$key]); |
144 | 144 | } |
145 | 145 | } |
146 | - $contestModel->contestUpdate($cid,$all_data,false); |
|
147 | - return ResponseModel::success(200,' |
|
146 | + $contestModel->contestUpdate($cid, $all_data, false); |
|
147 | + return ResponseModel::success(200, ' |
|
148 | 148 | Successful! However, only the name and description of the match can be changed for the match that has been finished. |
149 | 149 | '); |
150 | 150 | } |
151 | 151 | |
152 | 152 | } |
153 | 153 | |
154 | - public function issueAnnouncement(Request $request){ |
|
154 | + public function issueAnnouncement(Request $request) { |
|
155 | 155 | $request->validate([ |
156 | 156 | 'cid' => 'required|integer', |
157 | 157 | 'title' => 'required|string|max:250', |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | } |
172 | 172 | } |
173 | 173 | |
174 | - public function replyClarification(Request $request){ |
|
174 | + public function replyClarification(Request $request) { |
|
175 | 175 | $request->validate([ |
176 | 176 | 'cid' => 'required|integer', |
177 | 177 | 'ccid' => 'required|integer', |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | } |
192 | 192 | } |
193 | 193 | |
194 | - public function setClarificationPublic(Request $request){ |
|
194 | + public function setClarificationPublic(Request $request) { |
|
195 | 195 | $request->validate([ |
196 | 196 | 'cid' => 'required|integer', |
197 | 197 | 'ccid' => 'required|integer', |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | $groupModel=new GroupModel(); |
225 | 225 | $contestModel=new ContestModel(); |
226 | 226 | $verified=$contestModel->isVerified($all_data["cid"]); |
227 | - if(!$verified){ |
|
227 | + if (!$verified) { |
|
228 | 228 | return ResponseModel::err(2001); |
229 | 229 | } |
230 | 230 | $gid=$contestModel->gid($all_data["cid"]); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $all_data=$request->all(); |
42 | 42 | |
43 | 43 | $contestModel=new ContestModel(); |
44 | - return $contestModel->updateProfessionalRate($all_data["cid"])?ResponseModel::success(200):ResponseModel::err(1001); |
|
44 | + return $contestModel->updateProfessionalRate($all_data["cid"]) ?ResponseModel::success(200) : ResponseModel::err(1001); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function requestClarification(Request $request) |
@@ -77,16 +77,16 @@ discard block |
||
77 | 77 | $groupModel=new GroupModel(); |
78 | 78 | $basic=$contestModel->basic($all_data["cid"]); |
79 | 79 | |
80 | - if(!$basic["registration"]){ |
|
80 | + if (!$basic["registration"]) { |
|
81 | 81 | return ResponseModel::err(4003); |
82 | 82 | } |
83 | - if(strtotime($basic["registration_due"])<time()){ |
|
83 | + if (strtotime($basic["registration_due"])<time()) { |
|
84 | 84 | return ResponseModel::err(4004); |
85 | 85 | } |
86 | - if(!$basic["registant_type"]){ |
|
86 | + if (!$basic["registant_type"]) { |
|
87 | 87 | return ResponseModel::err(4005); |
88 | 88 | } |
89 | - if($basic["registant_type"]==1 && !$groupModel->isMember($basic["gid"], Auth::user()->id)){ |
|
89 | + if ($basic["registant_type"]==1 && !$groupModel->isMember($basic["gid"], Auth::user()->id)) { |
|
90 | 90 | return ResponseModel::err(4005); |
91 | 91 | } |
92 | 92 | |
@@ -100,13 +100,13 @@ discard block |
||
100 | 100 | $request->validate([ |
101 | 101 | 'cid' => 'required|integer' |
102 | 102 | ]); |
103 | - $cid = $request->input('cid'); |
|
103 | + $cid=$request->input('cid'); |
|
104 | 104 | |
105 | 105 | $contestModel=new ContestModel(); |
106 | 106 | $clearance=$contestModel->judgeClearance($cid, Auth::user()->id); |
107 | - if ($clearance < 1) { |
|
107 | + if ($clearance<1) { |
|
108 | 108 | return ResponseModel::err(7002); |
109 | 109 | } |
110 | - return ResponseModel::success(200,null,$contestModel->praticeAnalysis($cid)); |
|
110 | + return ResponseModel::success(200, null, $contestModel->praticeAnalysis($cid)); |
|
111 | 111 | } |
112 | 112 | } |
@@ -84,9 +84,9 @@ |
||
84 | 84 | $installed_timestamp=intval($info["compiler_timestamp"]); |
85 | 85 | } |
86 | 86 | $latest_timestamp=$installed_timestamp; |
87 | - $ConpilerConfig = glob(babel_path("Extension/$ocode/compiler/*.*")); |
|
87 | + $ConpilerConfig=glob(babel_path("Extension/$ocode/compiler/*.*")); |
|
88 | 88 | foreach ($ConpilerConfig as $file) { |
89 | - if (intval(basename($file)) > $installed_timestamp) { |
|
89 | + if (intval(basename($file))>$installed_timestamp) { |
|
90 | 90 | try { |
91 | 91 | $this->commitCompiler($file, json_decode(file_get_contents($file), true)); |
92 | 92 | $latest_timestamp=intval(basename($file)); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | //writing database |
40 | 40 | $this->transactionDB(); |
41 | 41 | |
42 | - }catch(Throwable $e){ |
|
43 | - if ($e->getMessage()!==""){ |
|
42 | + } catch (Throwable $e) { |
|
43 | + if ($e->getMessage()!=="") { |
|
44 | 44 | $this->command->line("\n <bg=red;fg=white> {$e->getMessage()} </>\n"); |
45 | 45 | } |
46 | 46 | } |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | public function __construct($class) |
60 | 60 | { |
61 | 61 | $this->command=$class; |
62 | - $this->versionParser = new VersionConstraintParser(); |
|
62 | + $this->versionParser=new VersionConstraintParser(); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | private function parseVersion() |
66 | 66 | { |
67 | - if(empty($this->babelConfig)){ |
|
67 | + if (empty($this->babelConfig)) { |
|
68 | 68 | throw new Exception('Missing babel.json Config file.'); |
69 | 69 | } |
70 | 70 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | DB::commit(); |
136 | 136 | |
137 | - }catch(Throwable $e){ |
|
137 | + } catch (Throwable $e) { |
|
138 | 138 | DB::rollback(); |
139 | 139 | if ($e->getMessage()!=="") { |
140 | 140 | $this->command->line("\n <bg=red;fg=white> {$e->getMessage()} </>\n"); |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | ->where(['verdict'=>'Waiting']) |
414 | 414 | ->get() |
415 | 415 | ->all(); |
416 | - foreach($ret as &$r){ |
|
416 | + foreach ($ret as &$r) { |
|
417 | 417 | $r["ocode"]=DB::table("oj")->where(["oid"=>$r["oid"]])->first()["ocode"]; |
418 | 418 | } |
419 | 419 | return $ret; |
@@ -431,15 +431,15 @@ discard block |
||
431 | 431 | if (isset($sub['verdict'])) { |
432 | 432 | $sub["color"]=$this->colorScheme[$sub['verdict']]; |
433 | 433 | } |
434 | - $result = DB::table($this->tableName)->where(['sid'=>$sid])->update($sub); |
|
435 | - $contestModel = new ContestModel(); |
|
436 | - $submission_info = DB::table($this->tableName) -> where(['sid'=>$sid]) -> get() -> first(); |
|
437 | - if ($result==1 && $submission_info['cid'] && $contestModel->isContestRunning($submission_info['cid'])){ |
|
438 | - $sub['pid'] = $submission_info['pid']; |
|
439 | - $sub['uid'] = $submission_info['uid']; |
|
440 | - $sub['cid'] = $submission_info['cid']; |
|
441 | - $sub['sid'] = $sid; |
|
442 | - $contestModel->updateContestRankTable($submission_info['cid'],$sub); |
|
434 | + $result=DB::table($this->tableName)->where(['sid'=>$sid])->update($sub); |
|
435 | + $contestModel=new ContestModel(); |
|
436 | + $submission_info=DB::table($this->tableName) -> where(['sid'=>$sid]) -> get() -> first(); |
|
437 | + if ($result==1 && $submission_info['cid'] && $contestModel->isContestRunning($submission_info['cid'])) { |
|
438 | + $sub['pid']=$submission_info['pid']; |
|
439 | + $sub['uid']=$submission_info['uid']; |
|
440 | + $sub['cid']=$submission_info['cid']; |
|
441 | + $sub['sid']=$sid; |
|
442 | + $contestModel->updateContestRankTable($submission_info['cid'], $sub); |
|
443 | 443 | } |
444 | 444 | return $result; |
445 | 445 | } |
@@ -510,15 +510,15 @@ discard block |
||
510 | 510 | 'desc' |
511 | 511 | ); |
512 | 512 | |
513 | - if($filter["pcode"]){ |
|
513 | + if ($filter["pcode"]) { |
|
514 | 514 | $paginator=$paginator->where(["pcode"=>$filter["pcode"]]); |
515 | 515 | } |
516 | 516 | |
517 | - if($filter["result"]){ |
|
517 | + if ($filter["result"]) { |
|
518 | 518 | $paginator=$paginator->where(["verdict"=>$filter["result"]]); |
519 | 519 | } |
520 | 520 | |
521 | - if($filter["account"]){ |
|
521 | + if ($filter["account"]) { |
|
522 | 522 | $paginator=$paginator->where(["name"=>$filter["account"]]); |
523 | 523 | } |
524 | 524 |