Passed
Pull Request — master (#4)
by Nikita
05:38 queued 01:22
created
src/Exception/LogicException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Exception;
11 11
 
Please login to merge, or discard this patch.
src/Lalr/BitSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Lalr;
11 11
 
Please login to merge, or discard this patch.
src/Lalr/StringBitSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Lalr;
11 11
 
Please login to merge, or discard this patch.
src/Lalr/ArrayBitSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Lalr;
11 11
 
Please login to merge, or discard this patch.
src/Lalr/Generator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Lalr;
11 11
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                 }
177 177
             }
178 178
 
179
-            $tmpList = $this->sortList($tmpList, function (Lr1 $x, Lr1 $y) {
179
+            $tmpList = $this->sortList($tmpList, function(Lr1 $x, Lr1 $y) {
180 180
                 $gx = $x->item[-1]->code;
181 181
                 $gy = $y->item[-1]->code;
182 182
                 if ($gx !== $gy) {
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
             if (!$tdefact) {
358 358
                 $tdefact = -1;
359 359
 
360
-                Utils::stableSort($tmpr, function (Reduce $x, Reduce $y) {
360
+                Utils::stableSort($tmpr, function(Reduce $x, Reduce $y) {
361 361
                     if ($x->number != $y->number) {
362 362
                         return $y->number - $x->number;
363 363
                     }
@@ -381,11 +381,11 @@  discard block
 block discarded – undo
381 381
             }
382 382
 
383 383
             // Squeeze tmpr
384
-            $tmpr = \array_filter($tmpr, function (Reduce $reduce) use ($tdefact) {
384
+            $tmpr = \array_filter($tmpr, function(Reduce $reduce) use ($tdefact) {
385 385
                 return $reduce->number !== $tdefact;
386 386
             });
387 387
 
388
-            Utils::stableSort($tmpr, function (Reduce $x, Reduce $y) {
388
+            Utils::stableSort($tmpr, function(Reduce $x, Reduce $y) {
389 389
                 if ($x->symbol !== $y->symbol) {
390 390
                     return $x->symbol->code - $y->symbol->code;
391 391
                 }
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         // do not move initial state
425 425
         $initState = \array_shift($this->states);
426 426
 
427
-        Utils::stableSort($this->states, function (State $p, State $q) {
427
+        Utils::stableSort($this->states, function(State $p, State $q) {
428 428
             $numReduces = count($p->reduce) - 1; // -1 for default action
429 429
             $pt = $numReduces;
430 430
             $pn = count($p->shifts) + $numReduces;
Please login to merge, or discard this patch.
src/Compress/PreImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Compress;
11 11
 
Please login to merge, or discard this patch.
src/CodeGen/Template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\CodeGen;
11 11
 
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     protected function skipIf(string $spec): bool
282 282
     {
283
-        [ $dump, $test ] = \explode(' ', $spec, 2);
283
+        [$dump, $test] = \explode(' ', $spec, 2);
284 284
 
285 285
         $test = \trim($test);
286 286
         switch ($test) {
Please login to merge, or discard this patch.
src/Compress/Compress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PhpYacc\Compress;
11 11
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             $this->context->debug("Used aux table:\n");
322 322
         }
323 323
         $this->context->countAux = $this->context->countClasses;
324
-        for (; ;) {
324
+        for (;;) {
325 325
             $maxGain = 0;
326 326
             $maxAux = null;
327 327
             $pre = null;
Please login to merge, or discard this patch.