Passed
Push — dev ( 65908c...19e502 )
by 世昌
02:14
created
suda/src/application/template/compiler/Command.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function has(string $name): bool
24 24
     {
25
-        return method_exists($this, 'parse' . ucfirst($name));
25
+        return method_exists($this, 'parse'.ucfirst($name));
26 26
     }
27 27
 
28 28
     /**
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function parse(string $name, string $content): string
34 34
     {
35 35
         if ($this->has($name)) {
36
-            return $this->{'parse' . ucfirst($name)}($this->parseEchoValue($content));
36
+            return $this->{'parse'.ucfirst($name)}($this->parseEchoValue($content));
37 37
         }
38 38
         return '';
39 39
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         preg_match('/\((.+)\)/', $exp, $v);
67 67
         $name = trim(str_replace('\'', '-', trim($v[1], '"\'')));
68
-        return '<?php $this->insert(\'' . $name . '\',function () { ?>';
68
+        return '<?php $this->insert(\''.$name.'\',function () { ?>';
69 69
     }
70 70
 
71 71
     /**
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     protected function parseInclude($content)
182 182
     {
183
-        return '<?php $this->include' . $content . '; ?>';
183
+        return '<?php $this->include'.$content.'; ?>';
184 184
     }
185 185
 
186 186
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     protected function parseExtend($content)
191 191
     {
192
-        return '<?php $this->extend' . $content . '; ?>';
192
+        return '<?php $this->extend'.$content.'; ?>';
193 193
     }
194 194
 
195 195
     /**
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     protected function parseStatic($content)
200 200
     {
201 201
         $content = strlen(trim($content)) === 0 ? '()' : $content;
202
-        return '<?php echo $this->getStaticPrefix' . $content . '; ?>';
202
+        return '<?php echo $this->getStaticPrefix'.$content.'; ?>';
203 203
     }
204 204
 
205 205
     /**
Please login to merge, or discard this patch.
suda/src/database/statement/ReadStatement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     protected function whereStringArray(string $where, array $whereBinder)
172 172
     {
173 173
         list($where, $whereBinder) = $this->prepareWhereString($where, $whereBinder);
174
-        $this->where = 'WHERE ' . $where;
174
+        $this->where = 'WHERE '.$where;
175 175
         $this->binder = $this->mergeBinder($this->binder, $whereBinder);
176 176
     }
177 177
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function groupBy(string $what)
185 185
     {
186
-        $this->groupBy = 'GROUP BY ' . $what;
186
+        $this->groupBy = 'GROUP BY '.$what;
187 187
         return $this;
188 188
     }
189 189
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
 
229 229
         list($having, $havingBinder) = $this->prepareWhereString($having, $havingBinder);
230
-        $this->having = 'HAVING ' . $having;
230
+        $this->having = 'HAVING '.$having;
231 231
         $this->binder = $this->mergeBinder($this->binder, $havingBinder);
232 232
     }
233 233
 
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
     {
243 243
         $order = strtoupper($order);
244 244
         if (strlen($this->orderBy) > 0) {
245
-            $this->orderBy .= ',`' . $what . '` ' . $order;
245
+            $this->orderBy .= ',`'.$what.'` '.$order;
246 246
         } else {
247
-            $this->orderBy = 'ORDER BY `' . $what . '` ' . $order;
247
+            $this->orderBy = 'ORDER BY `'.$what.'` '.$order;
248 248
         }
249 249
         return $this;
250 250
     }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function limit(int $start, int $length = null)
260 260
     {
261
-        $this->limit = 'LIMIT ' . $start . ($length !== null ? ',' . $length : '');
261
+        $this->limit = 'LIMIT '.$start.($length !== null ? ','.$length : '');
262 262
         return $this;
263 263
     }
264 264
 
Please login to merge, or discard this patch.