@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | // Parse class |
| 102 | 102 | $classStatement = $this->findClassAndUses($statements); |
| 103 | - if (! $classStatement) { |
|
| 103 | + if (!$classStatement) { |
|
| 104 | 104 | throw new EmptyFileException(EmptyFileException::TEXT); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -261,16 +261,16 @@ discard block |
||
| 261 | 261 | protected function getTestsAnnotations(): array |
| 262 | 262 | { |
| 263 | 263 | $testsAnnotations = []; |
| 264 | - if (! empty($author = $this->config->getOption(ConfigInterface::OPTION_DOC_AUTHOR))) { |
|
| 264 | + if (!empty($author = $this->config->getOption(ConfigInterface::OPTION_DOC_AUTHOR))) { |
|
| 265 | 265 | $testsAnnotations['author'] = $author; |
| 266 | 266 | } |
| 267 | - if (! empty($copyright = $this->config->getOption(ConfigInterface::OPTION_DOC_COPYRIGHT))) { |
|
| 267 | + if (!empty($copyright = $this->config->getOption(ConfigInterface::OPTION_DOC_COPYRIGHT))) { |
|
| 268 | 268 | $testsAnnotations['copyright'] = $copyright; |
| 269 | 269 | } |
| 270 | - if (! empty($licence = $this->config->getOption(ConfigInterface::OPTION_DOC_LICENCE))) { |
|
| 270 | + if (!empty($licence = $this->config->getOption(ConfigInterface::OPTION_DOC_LICENCE))) { |
|
| 271 | 271 | $testsAnnotations['licence'] = $licence; |
| 272 | 272 | } |
| 273 | - if (! empty($since = $this->config->getOption(ConfigInterface::OPTION_DOC_SINCE))) { |
|
| 273 | + if (!empty($since = $this->config->getOption(ConfigInterface::OPTION_DOC_SINCE))) { |
|
| 274 | 274 | $testsAnnotations['since'] = $since; |
| 275 | 275 | } |
| 276 | 276 | return $testsAnnotations; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $this->methodName = lcfirst($methodName); |
| 60 | 60 | |
| 61 | 61 | if (preg_match(self::CONTENT_REGEX, $content, $matches) > 0) { |
| 62 | - $this->expected = ! isset($matches[1]) |
|
| 62 | + $this->expected = !isset($matches[1]) |
|
| 63 | 63 | || (empty($matches[1]) && $matches[1] !== "0" && $matches[1] !== 0) ? |
| 64 | 64 | null : $matches[1]; |
| 65 | 65 | $this->arguments = $matches[4] ?? null; |