@@ -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\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\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 @@ |
||
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 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | class Compress |
20 | 20 | { |
21 | 21 | const UNEXPECTED = 32767; |
22 | - const DEFAULT = -32766; |
|
22 | + const default = -32766; |
|
23 | 23 | const VACANT = -32768; |
24 | 24 | |
25 | 25 | /** |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | if ($cTermAction[$i][$j] === $table[$this->context->oTermIndex[$j]]) { |
481 | 481 | $cTermAction[$i][$j] = self::VACANT; |
482 | 482 | } elseif ($cTermAction[$i][$j] === self::VACANT) { |
483 | - $cTermAction[$i][$j] = self::DEFAULT; |
|
483 | + $cTermAction[$i][$j] = self::default; |
|
484 | 484 | } |
485 | 485 | } |
486 | 486 | } |
@@ -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; |
@@ -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\Console; |
11 | 11 | |
@@ -67,12 +67,12 @@ discard block |
||
67 | 67 | private function validateInput(InputInterface $input): void |
68 | 68 | { |
69 | 69 | $skeleton = $input->getOption('skeleton'); |
70 | - if ($skeleton === null || ! \file_exists($skeleton)) { |
|
70 | + if ($skeleton === null || !\file_exists($skeleton)) { |
|
71 | 71 | throw new InvalidOptionException(\sprintf('The skeleton file "%s" is not found', $skeleton)); |
72 | 72 | } |
73 | 73 | |
74 | 74 | $grammar = $input->getArgument('grammar'); |
75 | - if (! \file_exists($grammar)) { |
|
75 | + if (!\file_exists($grammar)) { |
|
76 | 76 | throw new InvalidArgumentException(\sprintf('The grammar file "%s" is not found', $grammar)); |
77 | 77 | } |
78 | 78 | } |