Passed
Pull Request — master (#485)
by
unknown
05:55 queued 02:24
created
src/Components/WithKeyword.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
      */
51 51
     public static function build($component): string
52 52
     {
53
-        if (! $component instanceof WithKeyword) {
53
+        if (!$component instanceof WithKeyword) {
54 54
             throw new RuntimeException('Can not build a component that is not a WithKeyword');
55 55
         }
56 56
 
57
-        if (! isset($component->statement)) {
57
+        if (!isset($component->statement)) {
58 58
             throw new RuntimeException('No statement inside WITH');
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Components/Key.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
             } elseif ($state === 1) {
180 180
                 if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) {
181 181
                     $positionBeforeSearch = $list->idx;
182
-                    $list->idx++;// Ignore the current token "(" or the search condition will always be true
182
+                    $list->idx++; // Ignore the current token "(" or the search condition will always be true
183 183
                     $nextToken = $list->getNext();
184
-                    $list->idx = $positionBeforeSearch;// Restore the position
184
+                    $list->idx = $positionBeforeSearch; // Restore the position
185 185
 
186 186
                     if ($nextToken !== null && $nextToken->value === '(') {
187 187
                         // Switch to expression mode
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                 if ($token->type === Token::TYPE_OPERATOR) {
231 231
                     // This got back to here and we reached the end of the expression
232 232
                     if ($token->value === ')') {
233
-                        $state = 4;// go back to state 4 to fetch options
233
+                        $state = 4; // go back to state 4 to fetch options
234 234
                         continue;
235 235
                     }
236 236
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     public static function build($component): string
270 270
     {
271 271
         $ret = $component->type . ' ';
272
-        if (! empty($component->name)) {
272
+        if (!empty($component->name)) {
273 273
             $ret .= Context::escape($component->name) . ' ';
274 274
         }
275 275
 
Please login to merge, or discard this patch.