@@ -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 |
@@ -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 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function lex(Readable $input): \Traversable |
50 | 50 | { |
51 | 51 | foreach ($this->exec($this->pattern, $input->getContents()) as $token) { |
52 | - if (! \in_array($token->name(), $this->skipped, true)) { |
|
52 | + if (!\in_array($token->name(), $this->skipped, true)) { |
|
53 | 53 | yield $token; |
54 | 54 | } |
55 | 55 | } |
@@ -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\Common; |
11 | 11 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $message = \error_get_last()['message'] ?? \sprintf('Unprocessable PCRE %s', $pcre); |
70 | 70 | $message = \str_replace('preg_match(): Compilation failed: ', '', $message); |
71 | 71 | |
72 | - throw new BadLexemeException('Unprocessable PCRE (' . $message . ')'); |
|
72 | + throw new BadLexemeException('Unprocessable PCRE ('.$message.')'); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | return true; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | private function flags(): string |
91 | 91 | { |
92 | - return self::FLAG_UNICODE . self::FLAG_DOT_ALL . self::FLAG_ANALYZED; |
|
92 | + return self::FLAG_UNICODE.self::FLAG_DOT_ALL.self::FLAG_ANALYZED; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -175,6 +175,6 @@ discard block |
||
175 | 175 | */ |
176 | 176 | private function escapeString(string $value): string |
177 | 177 | { |
178 | - return \str_replace(self::REGEX_DELIMITER, '\\' . self::REGEX_DELIMITER, $value); |
|
178 | + return \str_replace(self::REGEX_DELIMITER, '\\'.self::REGEX_DELIMITER, $value); |
|
179 | 179 | } |
180 | 180 | } |
@@ -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\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 Railt\Compiler\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 Railt\Compiler\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 Railt\Compiler\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 Railt\Compiler\Exception; |
11 | 11 |