@@ -99,7 +99,6 @@ |
||
| 99 | 99 | /** |
| 100 | 100 | * Calculates the price for this specific component. |
| 101 | 101 | * |
| 102 | - * @param float[] $...additionalPrices Additional costs may be passed |
|
| 103 | 102 | * |
| 104 | 103 | * @return float |
| 105 | 104 | */ |
@@ -257,7 +257,7 @@ |
||
| 257 | 257 | |
| 258 | 258 | |
| 259 | 259 | /** |
| 260 | - * @return m\MockInterface|ClassNode |
|
| 260 | + * @return m\MockInterface |
|
| 261 | 261 | */ |
| 262 | 262 | private function buildClassMock() |
| 263 | 263 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Mockery as m; |
| 17 | 17 | use phpDocumentor\Reflection\Fqsen; |
| 18 | 18 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 19 | -use phpDocumentor\Reflection\Types\Context; |
|
| 20 | 19 | use PhpParser\Comment\Doc; |
| 21 | 20 | use PhpParser\Node\Name; |
| 22 | 21 | use PhpParser\Node\Stmt\ClassMethod; |
@@ -18,8 +18,6 @@ |
||
| 18 | 18 | use PhpParser\Node\Const_; |
| 19 | 19 | use PhpParser\Node\Expr\Variable; |
| 20 | 20 | use PhpParser\Node\Stmt\ClassConst; |
| 21 | -use PhpParser\Node\Stmt\Property as PropertyNode; |
|
| 22 | -use PhpParser\Node\Stmt\PropertyProperty; |
|
| 23 | 21 | |
| 24 | 22 | /** |
| 25 | 23 | * Class PropertyIteratorTest |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * @return m\MockInterface|InterfaceNode |
|
| 153 | + * @return m\MockInterface |
|
| 154 | 154 | */ |
| 155 | 155 | private function buildClassMock() |
| 156 | 156 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Mockery as m; |
| 17 | 17 | use phpDocumentor\Reflection\Fqsen; |
| 18 | 18 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 19 | -use phpDocumentor\Reflection\Types\Context; |
|
| 20 | 19 | use PhpParser\Comment\Doc; |
| 21 | 20 | use PhpParser\Node\Name; |
| 22 | 21 | use PhpParser\Node\Stmt\ClassMethod; |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | - * @return m\MockInterface|TraitNode |
|
| 177 | + * @return m\MockInterface |
|
| 178 | 178 | */ |
| 179 | 179 | private function buildTraitMock() |
| 180 | 180 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Mockery as m; |
| 17 | 17 | use phpDocumentor\Reflection\Fqsen; |
| 18 | 18 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 19 | -use phpDocumentor\Reflection\Types\Context; |
|
| 20 | 19 | use PhpParser\Comment\Doc; |
| 21 | 20 | use PhpParser\Node\Name; |
| 22 | 21 | use PhpParser\Node\Stmt\ClassMethod; |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Create a project map (similar to a sitemap) of project. |
|
| 4 | - * |
|
| 5 | - * The Reflection component is capable of analyzing one or more files into a hierarchy of objects representing the |
|
| 6 | - * structure of your project. It does this by analyzing the source code of each individual file using the |
|
| 7 | - * `analyze()` method in the Analyzer class. |
|
| 8 | - * |
|
| 9 | - * Because the Analyzer class requires a whole series of objects that interact together a factory method `create()` |
|
| 10 | - * is available. This method instantiates all objects and provides a reasonable default to start using the Analyzer. |
|
| 11 | - * |
|
| 12 | - * There is also a Service Provider (`\phpDocumentor\Descriptor\ServiceProvider`) that can be used with either Silex |
|
| 13 | - * or Cilex instead of using the factory method; this will make it easier to plug in your own features if you want to. |
|
| 14 | - */ |
|
| 3 | + * Create a project map (similar to a sitemap) of project. |
|
| 4 | + * |
|
| 5 | + * The Reflection component is capable of analyzing one or more files into a hierarchy of objects representing the |
|
| 6 | + * structure of your project. It does this by analyzing the source code of each individual file using the |
|
| 7 | + * `analyze()` method in the Analyzer class. |
|
| 8 | + * |
|
| 9 | + * Because the Analyzer class requires a whole series of objects that interact together a factory method `create()` |
|
| 10 | + * is available. This method instantiates all objects and provides a reasonable default to start using the Analyzer. |
|
| 11 | + * |
|
| 12 | + * There is also a Service Provider (`\phpDocumentor\Descriptor\ServiceProvider`) that can be used with either Silex |
|
| 13 | + * or Cilex instead of using the factory method; this will make it easier to plug in your own features if you want to. |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | // use Composer's autoloader to allow the application to automatically load all classes on request. |
| 17 | 17 | use phpDocumentor\Reflection\Php\Project; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | public static function createExecutionChain($middlewareList, callable $lastCallable) |
| 25 | 25 | { |
| 26 | 26 | while ($middleware = array_pop($middlewareList)) { |
| 27 | - if (! $middleware instanceof Middleware) { |
|
| 27 | + if (!$middleware instanceof Middleware) { |
|
| 28 | 28 | throw new InvalidArgumentException( |
| 29 | 29 | sprintf( |
| 30 | 30 | 'Middleware must be an instance of %s but %s was given', |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | ) |
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | - $lastCallable = function ($command) use ($middleware, $lastCallable) { |
|
| 36 | + $lastCallable = function($command) use ($middleware, $lastCallable) { |
|
| 37 | 37 | return $middleware->execute($command, $lastCallable); |
| 38 | 38 | }; |
| 39 | 39 | } |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * phpDocumentor |
|
| 4 | - * |
|
| 5 | - * PHP Version 5.5 |
|
| 6 | - * |
|
| 7 | - * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com) |
|
| 8 | - * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
| 9 | - * @link http://phpdoc.org |
|
| 10 | - */ |
|
| 3 | + * phpDocumentor |
|
| 4 | + * |
|
| 5 | + * PHP Version 5.5 |
|
| 6 | + * |
|
| 7 | + * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com) |
|
| 8 | + * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
| 9 | + * @link http://phpdoc.org |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace phpDocumentor\Reflection\Php\Factory\File; |
| 13 | 13 | |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | switch (get_class($stmt)) { |
| 90 | 90 | case TraitUse::class: |
| 91 | 91 | foreach ($stmt->traits as $use) { |
| 92 | - $classElement->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
| 92 | + $classElement->addUsedTrait(new Fqsen('\\' . $use->toString())); |
|
| 93 | 93 | } |
| 94 | 94 | break; |
| 95 | 95 | case PropertyNode::class: |
@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of phpDocumentor. |
|
| 4 | - * |
|
| 5 | - * For the full copyright and license information, please view the LICENSE |
|
| 6 | - * file that was distributed with this source code. |
|
| 7 | - * |
|
| 8 | - * @copyright 2010-2015 Mike van Riel<[email protected]> |
|
| 9 | - * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
| 10 | - * @link http://phpdoc.org |
|
| 11 | - */ |
|
| 3 | + * This file is part of phpDocumentor. |
|
| 4 | + * |
|
| 5 | + * For the full copyright and license information, please view the LICENSE |
|
| 6 | + * file that was distributed with this source code. |
|
| 7 | + * |
|
| 8 | + * @copyright 2010-2015 Mike van Riel<[email protected]> |
|
| 9 | + * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
| 10 | + * @link http://phpdoc.org |
|
| 11 | + */ |
|
| 12 | 12 | |
| 13 | 13 | namespace phpDocumentor\Reflection\Php; |
| 14 | 14 | |
@@ -13,19 +13,16 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace phpDocumentor\Reflection\Php\Factory; |
| 15 | 15 | |
| 16 | -use InvalidArgumentException; |
|
| 17 | 16 | use phpDocumentor\Reflection\Element; |
| 18 | 17 | use phpDocumentor\Reflection\Fqsen; |
| 19 | 18 | use phpDocumentor\Reflection\Php\Class_ as ClassElement; |
| 20 | 19 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
| 21 | 20 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 22 | 21 | use phpDocumentor\Reflection\Types\Context; |
| 23 | -use PhpParser\Node; |
|
| 24 | 22 | use PhpParser\Node\Stmt\Class_ as ClassNode; |
| 25 | 23 | use PhpParser\Node\Stmt\ClassConst; |
| 26 | 24 | use PhpParser\Node\Stmt\ClassMethod; |
| 27 | 25 | use PhpParser\Node\Stmt\Property as PropertyNode; |
| 28 | -use PhpParser\Comment\Doc; |
|
| 29 | 26 | use PhpParser\Node\Stmt\TraitUse; |
| 30 | 27 | |
| 31 | 28 | /** |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $this->nodesFactory = $nodesFactory; |
| 69 | 69 | $this->adapter = $adapter; |
| 70 | 70 | |
| 71 | - $lastCallable = function ($command) { |
|
| 71 | + $lastCallable = function($command) { |
|
| 72 | 72 | return $this->createFile($command); |
| 73 | 73 | }; |
| 74 | 74 | |
@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of phpDocumentor. |
|
| 4 | - * |
|
| 5 | - * For the full copyright and license information, please view the LICENSE |
|
| 6 | - * file that was distributed with this source code. |
|
| 7 | - * |
|
| 8 | - * @copyright 2010-2015 Mike van Riel<[email protected]> |
|
| 9 | - * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
| 10 | - * @link http://phpdoc.org |
|
| 11 | - */ |
|
| 3 | + * This file is part of phpDocumentor. |
|
| 4 | + * |
|
| 5 | + * For the full copyright and license information, please view the LICENSE |
|
| 6 | + * file that was distributed with this source code. |
|
| 7 | + * |
|
| 8 | + * @copyright 2010-2015 Mike van Riel<[email protected]> |
|
| 9 | + * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
| 10 | + * @link http://phpdoc.org |
|
| 11 | + */ |
|
| 12 | 12 | |
| 13 | 13 | namespace phpDocumentor\Reflection\Php; |
| 14 | 14 | |
@@ -170,8 +170,8 @@ |
||
| 170 | 170 | } |
| 171 | 171 | /** |
| 172 | 172 | * @param StrategyContainer $strategies |
| 173 | - * @param $code |
|
| 174 | - * @param $nodes |
|
| 173 | + * @param string $code |
|
| 174 | + * @param Node[] $nodes |
|
| 175 | 175 | * @return null|\phpDocumentor\Reflection\Element |
| 176 | 176 | * @internal param Context $context |
| 177 | 177 | */ |
@@ -13,7 +13,6 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | namespace phpDocumentor\Reflection\Php\Factory; |
| 15 | 15 | |
| 16 | -use InvalidArgumentException; |
|
| 17 | 16 | use phpDocumentor\Reflection\File as FileSystemFile; |
| 18 | 17 | use phpDocumentor\Reflection\Fqsen; |
| 19 | 18 | use phpDocumentor\Reflection\Middleware\ChainFactory; |
@@ -25,8 +24,6 @@ discard block |
||
| 25 | 24 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 26 | 25 | use phpDocumentor\Reflection\Types\Context; |
| 27 | 26 | use phpDocumentor\Reflection\Types\ContextFactory; |
| 28 | -use PhpParser\Comment\Doc; |
|
| 29 | -use PhpParser\Lexer; |
|
| 30 | 27 | use PhpParser\Node; |
| 31 | 28 | use PhpParser\Node\Stmt\Class_ as ClassNode; |
| 32 | 29 | use PhpParser\Node\Stmt\Function_ as FunctionNode; |