@@ -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 |
@@ -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; |