Passed
Push — master ( 5def33...826987 )
by John
13:48 queued 09:15
created
app/Admin/Controllers/SubmissionController.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
         $grid->coid("COID");
98 98
         $grid->score("Raw Score");
99 99
         $grid->filter(function(Grid\Filter $filter) {
100
-            $filter->column(6, function ($filter) {
100
+            $filter->column(6, function($filter) {
101 101
                 $filter->like('verdict');
102 102
             });
103
-            $filter->column(6, function ($filter) {
103
+            $filter->column(6, function($filter) {
104 104
                 $filter->equal('cid', 'Contest ID');
105 105
                 $filter->equal('uid', 'User ID');
106 106
                 $filter->equal('pid', 'Problem ID');
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
         $show->language();
127 127
         $show->submission_date();
128 128
         $show->remote_id();
129
-        $this->codify($show->solution(),$show->getModel()->compiler->lang);
130
-        if(!blank($show->getModel()->compile_info))$this->codify($show->compile_info());
129
+        $this->codify($show->solution(), $show->getModel()->compiler->lang);
130
+        if (!blank($show->getModel()->compile_info))$this->codify($show->compile_info());
131 131
         $show->uid('UID');
132 132
         $show->pid('PID');
133 133
         $show->cid('CID');
@@ -135,15 +135,15 @@  discard block
 block discarded – undo
135 135
         $show->coid('COID');
136 136
         $show->vcid('VCID');
137 137
         $show->score();
138
-        $show->share()->using(['No','Yes']);
138
+        $show->share()->using(['No', 'Yes']);
139 139
         return $show;
140 140
     }
141 141
 
142
-    private function codify($field, $lang=null){
143
-        $field->unescape()->as(function ($value) use ($field,$lang) {
144
-            $field->border = false;
142
+    private function codify($field, $lang=null) {
143
+        $field->unescape()->as(function($value) use ($field, $lang) {
144
+            $field->border=false;
145 145
             $hash=md5($value);
146
-            if($value===null || $value==="") $value=" ";
146
+            if ($value===null || $value==="") $value=" ";
147 147
             return "
148 148
                 <style>
149 149
                 #x$hash {
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,9 @@  discard block
 block discarded – undo
127 127
         $show->submission_date();
128 128
         $show->remote_id();
129 129
         $this->codify($show->solution(),$show->getModel()->compiler->lang);
130
-        if(!blank($show->getModel()->compile_info))$this->codify($show->compile_info());
130
+        if(!blank($show->getModel()->compile_info)) {
131
+            $this->codify($show->compile_info());
132
+        }
131 133
         $show->uid('UID');
132 134
         $show->pid('PID');
133 135
         $show->cid('CID');
@@ -143,7 +145,9 @@  discard block
 block discarded – undo
143 145
         $field->unescape()->as(function ($value) use ($field,$lang) {
144 146
             $field->border = false;
145 147
             $hash=md5($value);
146
-            if($value===null || $value==="") $value=" ";
148
+            if($value===null || $value==="") {
149
+                $value=" ";
150
+            }
147 151
             return "
148 152
                 <style>
149 153
                 #x$hash {
Please login to merge, or discard this patch.