@@ -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 @@ 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\Support; |
| 11 | 11 | use PhpYacc\Compress\Compress; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $indexedArray[] = [$item, $i++]; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - \usort($indexedArray, function (array $a, array $b) use ($cmp) { |
|
| 115 | + \usort($indexedArray, function(array $a, array $b) use ($cmp) { |
|
| 116 | 116 | $result = $cmp($a[0], $b[0]); |
| 117 | 117 | if ($result !== 0) { |
| 118 | 118 | return $result; |
@@ -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 | |
@@ -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 | } |