@@ -435,9 +435,9 @@ |
||
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 | } |
@@ -57,11 +57,11 @@ |
||
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 |
@@ -51,12 +51,12 @@ |
||
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(), |
@@ -131,20 +131,20 @@ |
||
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.'); |