Completed
Push — master ( 9e3cd7...c9b06b )
by Kirill
05:54
created
src/Grammar/Analyzer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -244,23 +244,23 @@  discard block
 block discarded – undo
244 244
                 break;
245 245
 
246 246
             case Parser::T_REPEAT_N_TO_M:
247
-                $min = (int)$tokens->current()->getValue(1);
248
-                $max = (int)$tokens->current()->getValue(2);
247
+                $min = (int) $tokens->current()->getValue(1);
248
+                $max = (int) $tokens->current()->getValue(2);
249 249
                 $tokens->next();
250 250
                 break;
251 251
 
252 252
             case Parser::T_REPEAT_ZERO_TO_M:
253
-                [$min, $max] = [0, (int)$tokens->current()->getValue(1)];
253
+                [$min, $max] = [0, (int) $tokens->current()->getValue(1)];
254 254
                 $tokens->next();
255 255
                 break;
256 256
 
257 257
             case Parser::T_REPEAT_N_OR_MORE:
258
-                [$min, $max] = [(int)$tokens->current()->getValue(1), -1];
258
+                [$min, $max] = [(int) $tokens->current()->getValue(1), -1];
259 259
                 $tokens->next();
260 260
                 break;
261 261
 
262 262
             case Parser::T_REPEAT_EXACTLY_N:
263
-                $min = $max = (int)$tokens->current()->getValue(1);
263
+                $min = $max = (int) $tokens->current()->getValue(1);
264 264
                 $tokens->next();
265 265
                 break;
266 266
         }
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     {
368 368
         $tokenName = $tokens->current()->getValue(1);
369 369
 
370
-        if (! \array_key_exists($tokenName, $this->rules)) {
370
+        if (!\array_key_exists($tokenName, $this->rules)) {
371 371
             $error = \vsprintf('Cannot call rule %s() in rule %s because it does not exist.', [
372 372
                 $tokenName,
373 373
                 $this->ruleName,
Please login to merge, or discard this patch.