@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | // The code below extracts only the relevant information. |
| 81 | 81 | |
| 82 | 82 | // Extracting lexer's errors. |
| 83 | - if (! empty($lexer->errors)) { |
|
| 83 | + if (!empty($lexer->errors)) { |
|
| 84 | 84 | /** @var LexerException $err */ |
| 85 | 85 | foreach ($lexer->errors as $err) { |
| 86 | 86 | $lexerErrors[] = [ |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | // Extracting parser's errors. |
| 98 | - if (! empty($parser->errors)) { |
|
| 98 | + if (!empty($parser->errors)) { |
|
| 99 | 99 | /** @var ParserException $err */ |
| 100 | 100 | foreach ($parser->errors as $err) { |
| 101 | 101 | $parserErrors[] = [ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | public static function build($type, $input, $output, $debug = null, $ansi = false) |
| 136 | 136 | { |
| 137 | 137 | // Support query types: `lexer` / `parser`. |
| 138 | - if (! in_array($type, ['lexer', 'parser'])) { |
|
| 138 | + if (!in_array($type, ['lexer', 'parser'])) { |
|
| 139 | 139 | throw new Exception('Unknown test type (expected `lexer` or `parser`).'); |
| 140 | 140 | } |
| 141 | 141 | |
@@ -211,11 +211,11 @@ discard block |
||
| 211 | 211 | if (is_dir($inputFile)) { |
| 212 | 212 | // Creating required directories to maintain the structure. |
| 213 | 213 | // Ignoring errors if the folder structure exists already. |
| 214 | - if (! is_dir($outputFile)) { |
|
| 214 | + if (!is_dir($outputFile)) { |
|
| 215 | 215 | mkdir($outputFile); |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | - if (($debug !== null) && (! is_dir($debugFile))) { |
|
| 218 | + if (($debug !== null) && (!is_dir($debugFile))) { |
|
| 219 | 219 | mkdir($debugFile); |
| 220 | 220 | } |
| 221 | 221 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | // Building the test. |
| 233 | - if (! file_exists($outputFile)) { |
|
| 233 | + if (!file_exists($outputFile)) { |
|
| 234 | 234 | sprintf("Building test for %s...\n", $inputFile); |
| 235 | 235 | static::build( |
| 236 | 236 | str_contains($inputFile, 'lex') ? 'lexer' : 'parser', |