@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | // Parse class |
105 | 105 | $classStatement = $this->findClass($statements); |
106 | - if (! $classStatement) { |
|
106 | + if (!$classStatement) { |
|
107 | 107 | throw new EmptyFileException(EmptyFileException::TEXT); |
108 | 108 | } |
109 | 109 | |
@@ -231,16 +231,16 @@ discard block |
||
231 | 231 | protected function getTestsAnnotations(): array |
232 | 232 | { |
233 | 233 | $testsAnnotations = []; |
234 | - if (! empty($author = $this->config->getOption(ConfigInterface::OPTION_DOC_AUTHOR))) { |
|
234 | + if (!empty($author = $this->config->getOption(ConfigInterface::OPTION_DOC_AUTHOR))) { |
|
235 | 235 | $testsAnnotations['author'] = $author; |
236 | 236 | } |
237 | - if (! empty($copyright = $this->config->getOption(ConfigInterface::OPTION_DOC_COPYRIGHT))) { |
|
237 | + if (!empty($copyright = $this->config->getOption(ConfigInterface::OPTION_DOC_COPYRIGHT))) { |
|
238 | 238 | $testsAnnotations['copyright'] = $copyright; |
239 | 239 | } |
240 | - if (! empty($licence = $this->config->getOption(ConfigInterface::OPTION_DOC_LICENCE))) { |
|
240 | + if (!empty($licence = $this->config->getOption(ConfigInterface::OPTION_DOC_LICENCE))) { |
|
241 | 241 | $testsAnnotations['licence'] = $licence; |
242 | 242 | } |
243 | - if (! empty($since = $this->config->getOption(ConfigInterface::OPTION_DOC_SINCE))) { |
|
243 | + if (!empty($since = $this->config->getOption(ConfigInterface::OPTION_DOC_SINCE))) { |
|
244 | 244 | $testsAnnotations['since'] = $since; |
245 | 245 | } |
246 | 246 | return $testsAnnotations; |
@@ -135,7 +135,7 @@ |
||
135 | 135 | for ($i = 0; $i < strlen($content); $i++) { |
136 | 136 | $openingCharCount += $content[$i] === $openingChar; |
137 | 137 | if ($content[$i] === $closingChar) { |
138 | - $closingCharCount ++; |
|
138 | + $closingCharCount++; |
|
139 | 139 | $lastClosingCharIndex = $i; |
140 | 140 | } |
141 | 141 |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function writeFile(string $inFile, string $outFile): int |
104 | 104 | { |
105 | - if (! $this->fileExists($inFile)) { |
|
105 | + if (!$this->fileExists($inFile)) { |
|
106 | 106 | throw new FileNotFoundException( |
107 | 107 | sprintf(FileNotFoundException::TEXT, $inFile) |
108 | 108 | ); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $testCode = $this->generate($this->read($inFile)); |
117 | 117 | |
118 | - if (! $this->fileExists(dirname($outFile), true)) { |
|
118 | + if (!$this->fileExists(dirname($outFile), true)) { |
|
119 | 119 | $this->mkDir(dirname($outFile)); |
120 | 120 | } |
121 | 121 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $outDir .= '/'; |
137 | 137 | } |
138 | 138 | // Check source dir |
139 | - if (! $this->fileExists($inDir, true)) { |
|
139 | + if (!$this->fileExists($inDir, true)) { |
|
140 | 140 | throw new DirNotFoundException( |
141 | 141 | sprintf( |
142 | 142 | DirNotFoundException::TEXT, |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | // Check target dir |
161 | - if (! $this->fileExists($outDir, true)) { |
|
161 | + if (!$this->fileExists($outDir, true)) { |
|
162 | 162 | $this->mkDir($outDir); |
163 | 163 | } |
164 | 164 | |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | protected function fileExists(string $file, bool $isDir = false): bool |
275 | 275 | { |
276 | - return file_exists($file) && (($isDir && is_dir($file)) || (! $isDir && is_file($file))); |
|
276 | + return file_exists($file) && (($isDir && is_dir($file)) || (!$isDir && is_file($file))); |
|
277 | 277 | } |
278 | 278 | |
279 | 279 | /** |