@@ -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 Railt\Compiler\Generator; |
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 Railt\Compiler\Generator\Renderer; |
11 | 11 | |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | interface Renderer |
16 | 16 | { |
17 | - public const BASE_DIRECTORY = __DIR__ . '/../../../resources/templates'; |
|
17 | + public const BASE_DIRECTORY = __DIR__.'/../../../resources/templates'; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param string $directory |
@@ -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 Railt\Compiler\Generator; |
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 Railt\Compiler; |
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 Railt\Compiler\Lexer; |
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 Railt\Compiler\Lexer; |
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 Railt\Compiler\Lexer; |
11 | 11 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function lex(Readable $input): \Traversable |
39 | 39 | { |
40 | 40 | foreach ($this->exec($this->pcre->compile(), $input->getContents()) as $token) { |
41 | - if (! \in_array($token->name(), $this->skipped, true)) { |
|
41 | + if (!\in_array($token->name(), $this->skipped, true)) { |
|
42 | 42 | yield $token; |
43 | 43 | } |
44 | 44 | } |
@@ -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 Railt\Compiler\Lexer\Result; |
11 | 11 | |
@@ -31,12 +31,12 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function __toString(): string |
33 | 33 | { |
34 | - $format = function (string $value) { |
|
35 | - $value = (string)(\preg_replace('/\s+/iu', ' ', $value) ?? $value); |
|
34 | + $format = function(string $value) { |
|
35 | + $value = (string) (\preg_replace('/\s+/iu', ' ', $value) ?? $value); |
|
36 | 36 | $value = \addcslashes($value, '"'); |
37 | 37 | |
38 | 38 | if (\mb_strlen($value) > 35) { |
39 | - $value = \mb_substr($value, 0, 30) . |
|
39 | + $value = \mb_substr($value, 0, 30). |
|
40 | 40 | \sprintf('… (%s+)', \mb_strlen($value) - 30); |
41 | 41 | } |
42 | 42 |
@@ -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 Railt\Compiler\Lexer\Result; |
11 | 11 |