@@ -5,7 +5,7 @@ |
||
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 |
@@ -5,7 +5,7 @@ |
||
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 |
@@ -5,7 +5,7 @@ |
||
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 |
@@ -5,7 +5,7 @@ |
||
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 |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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; |
@@ -5,7 +5,7 @@ |
||
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 |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
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) { |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
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; |