Passed
Push — master ( d8c0b8...f45b16 )
by Maurício
02:50
created
src/Tools/TestGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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[] = [
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public static function build($type, $input, $output, $debug = null, $ansi = false)
134 134
     {
135 135
         // Support query types: `lexer` / `parser`.
136
-        if (! in_array($type, ['lexer', 'parser'])) {
136
+        if (!in_array($type, ['lexer', 'parser'])) {
137 137
             throw new Exception('Unknown test type (expected `lexer` or `parser`).');
138 138
         }
139 139
 
@@ -207,11 +207,11 @@  discard block
 block discarded – undo
207 207
             if (is_dir($inputFile)) {
208 208
                 // Creating required directories to maintain the structure.
209 209
                 // Ignoring errors if the folder structure exists already.
210
-                if (! is_dir($outputFile)) {
210
+                if (!is_dir($outputFile)) {
211 211
                     mkdir($outputFile);
212 212
                 }
213 213
 
214
-                if (($debug !== null) && (! is_dir($debugFile))) {
214
+                if (($debug !== null) && (!is_dir($debugFile))) {
215 215
                     mkdir($debugFile);
216 216
                 }
217 217
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
                 }
227 227
 
228 228
                 // Building the test.
229
-                if (! file_exists($outputFile)) {
229
+                if (!file_exists($outputFile)) {
230 230
                     sprintf("Building test for %s...\n", $inputFile);
231 231
                     static::build(
232 232
                         strpos($inputFile, 'lex') !== false ? 'lexer' : 'parser',
Please login to merge, or discard this patch.