Passed
Push — master ( 943241...45600c )
by Paul
10:51 queued 05:35
created
src/PHPUnitGenerator/Parser/CodeParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/PHPUnitGenerator/Model/AnnotationBaseModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.