@@ -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 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function mkDir(string $dir) |
66 | 66 | { |
67 | - if (! $this->dirExists($dir)) { |
|
67 | + if (!$this->dirExists($dir)) { |
|
68 | 68 | mkdir($dir, 0755, true); |
69 | 69 | } |
70 | 70 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function read(string $file): string |
108 | 108 | { |
109 | - if (! $this->fileExists($file)) { |
|
109 | + if (!$this->fileExists($file)) { |
|
110 | 110 | throw new FileNotFoundException(sprintf(FileNotFoundException::TEXT, $file)); |
111 | 111 | } |
112 | 112 | return file_get_contents($file); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | protected function getFilesIterator(string $dir) |
125 | 125 | { |
126 | - if (! $this->dirExists($dir)) { |
|
126 | + if (!$this->dirExists($dir)) { |
|
127 | 127 | throw new DirNotFoundException(sprintf(DirNotFoundException::TEXT, $dir)); |
128 | 128 | } |
129 | 129 |