@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | // The code below extracts only the relevant information. |
| 83 | 83 | |
| 84 | 84 | // Extracting lexer's errors. |
| 85 | - if (! empty($lexer->errors)) { |
|
| 85 | + if (!empty($lexer->errors)) { |
|
| 86 | 86 | /** @var LexerException $err */ |
| 87 | 87 | foreach ($lexer->errors as $err) { |
| 88 | 88 | $lexerErrors[] = [ |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | // Extracting parser's errors. |
| 100 | - if (! empty($parser->errors)) { |
|
| 100 | + if (!empty($parser->errors)) { |
|
| 101 | 101 | /** @var ParserException $err */ |
| 102 | 102 | foreach ($parser->errors as $err) { |
| 103 | 103 | $parserErrors[] = [ |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | public static function build($type, $input, $output, $debug = null, $ansi = false) |
| 138 | 138 | { |
| 139 | 139 | // Support query types: `lexer` / `parser`. |
| 140 | - if (! in_array($type, ['lexer', 'parser'])) { |
|
| 140 | + if (!in_array($type, ['lexer', 'parser'])) { |
|
| 141 | 141 | throw new Exception('Unknown test type (expected `lexer` or `parser`).'); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -223,11 +223,11 @@ discard block |
||
| 223 | 223 | if (is_dir($inputFile)) { |
| 224 | 224 | // Creating required directories to maintain the structure. |
| 225 | 225 | // Ignoring errors if the folder structure exists already. |
| 226 | - if (! is_dir($outputFile)) { |
|
| 226 | + if (!is_dir($outputFile)) { |
|
| 227 | 227 | mkdir($outputFile); |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | - if (($debug !== null) && (! is_dir($debugFile))) { |
|
| 230 | + if (($debug !== null) && (!is_dir($debugFile))) { |
|
| 231 | 231 | mkdir($debugFile); |
| 232 | 232 | } |
| 233 | 233 | |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | // Building the test. |
| 245 | - if (! file_exists($outputFile)) { |
|
| 245 | + if (!file_exists($outputFile)) { |
|
| 246 | 246 | echo sprintf("Building test for %s...\n", $inputFile); |
| 247 | 247 | static::build( |
| 248 | 248 | str_contains($inputFile, 'lex') ? 'lexer' : 'parser', |