Passed
Pull Request — master (#18)
by
unknown
09:25
created
src/Builder/PhpDomainBuilder.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -435,9 +435,9 @@
 block discarded – undo
435 435
         if ($docBlock !== null) {
436 436
             /** @var Param $param */
437 437
             foreach ($docBlock->getTagsByName('param') as $param) {
438
-				if ($param instanceof Param) {
439
-					$params[$param->getVariableName()] = $param;
440
-				}
438
+                if ($param instanceof Param) {
439
+                    $params[$param->getVariableName()] = $param;
440
+                }
441 441
             }
442 442
             $deprecated = $docBlock->getTagsByName('deprecated');
443 443
         }
Please login to merge, or discard this patch.
src/Middleware/ErrorHandlingMiddleware.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@
 block discarded – undo
57 57
             return $next($command);
58 58
         } catch (Exception $e) {
59 59
             $this->apiDocBuilder->log('Unable to parse file "'.$filename.'", '.$e->getMessage());
60
-			//Must Return empty file object
61
-			return new FileElement(
62
-				$command->getFile()->md5(),
63
-				$filename
64
-			);
60
+            //Must Return empty file object
61
+            return new FileElement(
62
+                $command->getFile()->md5(),
63
+                $filename
64
+            );
65 65
         }
66 66
 
67 67
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@
 block discarded – undo
51 51
     public function execute(Command $command, callable $next) : object
52 52
     {
53 53
         $filename = $command->getFile()->path();
54
-        $this->apiDocBuilder->debug('Starting to parse file: '.$filename);
54
+        $this->apiDocBuilder->debug('Starting to parse file: ' . $filename);
55 55
 
56 56
         try {
57 57
             return $next($command);
58 58
         } catch (Exception $e) {
59
-            $this->apiDocBuilder->log('Unable to parse file "'.$filename.'", '.$e->getMessage());
59
+            $this->apiDocBuilder->log('Unable to parse file "' . $filename . '", ' . $e->getMessage());
60 60
 			//Must Return empty file object
61 61
 			return new FileElement(
62 62
 				$command->getFile()->md5(),
Please login to merge, or discard this patch.
src/ApiDocBuilder.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -131,20 +131,20 @@
 block discarded – undo
131 131
         }
132 132
 
133 133
         $projectFactory = new ProjectFactory([
134
-			new Factory\Argument(new PrettyPrinter()),
135
-			new Factory\Class_(),
136
-			new Factory\Define(new PrettyPrinter()),
137
-			new Factory\GlobalConstant(new PrettyPrinter()),
138
-			new Factory\ClassConstant(new PrettyPrinter()),
139
-			new Factory\DocBlock(DocBlockFactory::createInstance()),
140
-			new Factory\File(NodesFactory::createInstance(), [
141
-				new ErrorHandlingMiddleware($this),
142
-			]),
143
-			new Factory\Function_(),
144
-			new Factory\Interface_(),
145
-			new Factory\Method(),
146
-			new Factory\Property(new PrettyPrinter()),
147
-			new Factory\Trait_(),
134
+            new Factory\Argument(new PrettyPrinter()),
135
+            new Factory\Class_(),
136
+            new Factory\Define(new PrettyPrinter()),
137
+            new Factory\GlobalConstant(new PrettyPrinter()),
138
+            new Factory\ClassConstant(new PrettyPrinter()),
139
+            new Factory\DocBlock(DocBlockFactory::createInstance()),
140
+            new Factory\File(NodesFactory::createInstance(), [
141
+                new ErrorHandlingMiddleware($this),
142
+            ]),
143
+            new Factory\Function_(),
144
+            new Factory\Interface_(),
145
+            new Factory\Method(),
146
+            new Factory\Property(new PrettyPrinter()),
147
+            new Factory\Trait_(),
148 148
         ]);
149 149
         $this->project = $projectFactory->create('MyProject', $interfaceList);
150 150
         $this->log('Successfully parsed files.');
Please login to merge, or discard this patch.