@@ -120,7 +120,7 @@ |
||
| 120 | 120 | /** |
| 121 | 121 | * Builds the name of the current node using the parts that are pushed to the parts list. |
| 122 | 122 | * |
| 123 | - * @return null|string |
|
| 123 | + * @return string |
|
| 124 | 124 | */ |
| 125 | 125 | private function buildName() |
| 126 | 126 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use phpDocumentor\Reflection\Fqsen; |
| 17 | 17 | use PhpParser\Node; |
| 18 | 18 | use PhpParser\Node\Const_; |
| 19 | -use PhpParser\Node\Name; |
|
| 20 | 19 | use PhpParser\Node\Stmt\Class_; |
| 21 | 20 | use PhpParser\Node\Stmt\ClassConst; |
| 22 | 21 | use PhpParser\Node\Stmt\ClassMethod; |
@@ -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 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** |
| 98 | 98 | * Returns the superclass this class is extending if available. |
| 99 | 99 | * |
| 100 | - * @return NUll|Fqsen |
|
| 100 | + * @return Class_ |
|
| 101 | 101 | */ |
| 102 | 102 | public function getParent() |
| 103 | 103 | { |
@@ -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 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Returns true when the strategy is able to handle the object. |
| 39 | 39 | * |
| 40 | - * @param object $object object to check. |
|
| 40 | + * @param ClassNode $object object to check. |
|
| 41 | 41 | * @return boolean |
| 42 | 42 | */ |
| 43 | 43 | public function matches($object) |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * @param Doc $docBlock |
| 135 | 135 | * @param StrategyContainer $strategies |
| 136 | 136 | * @param Context $context |
| 137 | - * @return null|\phpDocumentor\Reflection\DocBlock |
|
| 137 | + * @return null|Element |
|
| 138 | 138 | */ |
| 139 | 139 | private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
| 140 | 140 | { |
@@ -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 | |
@@ -87,6 +87,9 @@ discard block |
||
| 87 | 87 | return $docComment; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @return \PhpParser\Node\Expr |
|
| 92 | + */ |
|
| 90 | 93 | public function getValue() |
| 91 | 94 | { |
| 92 | 95 | return $this->classConstants->consts[$this->index]->value; |
@@ -96,7 +99,7 @@ discard block |
||
| 96 | 99 | * (PHP 5 >= 5.0.0)<br/> |
| 97 | 100 | * Return the current element |
| 98 | 101 | * @link http://php.net/manual/en/iterator.current.php |
| 99 | - * @return mixed Can return any type. |
|
| 102 | + * @return ClassConstantIterator Can return any type. |
|
| 100 | 103 | */ |
| 101 | 104 | public function current() |
| 102 | 105 | { |
@@ -118,7 +121,7 @@ discard block |
||
| 118 | 121 | * (PHP 5 >= 5.0.0)<br/> |
| 119 | 122 | * Return the key of the current element |
| 120 | 123 | * @link http://php.net/manual/en/iterator.key.php |
| 121 | - * @return mixed scalar on success, or null on failure. |
|
| 124 | + * @return integer scalar on success, or null on failure. |
|
| 122 | 125 | */ |
| 123 | 126 | public function key() |
| 124 | 127 | { |
@@ -1,14 +1,14 @@ discard block |
||
| 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 | |
| 14 | 14 | namespace phpDocumentor\Reflection\Php\Factory; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function getName() |
| 59 | 59 | { |
| 60 | - return $this->classConstants->consts[$this->index]->name; |
|
| 60 | + return $this->classConstants->consts[$this->index]->name; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param ClassConstantIterator $object object to convert to an Element |
| 63 | 63 | * @param StrategyContainer $strategies used to convert nested objects. |
| 64 | 64 | * @param Context $context of the created object |
| 65 | - * @return Constant |
|
| 65 | + * @return ConstantElement |
|
| 66 | 66 | */ |
| 67 | 67 | public function create($object, StrategyContainer $strategies, Context $context = null) |
| 68 | 68 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param Doc $docBlock |
| 80 | 80 | * @param StrategyContainer $strategies |
| 81 | 81 | * @param Context $context |
| 82 | - * @return null|\phpDocumentor\Reflection\DocBlock |
|
| 82 | + * @return null|\phpDocumentor\Reflection\Element |
|
| 83 | 83 | */ |
| 84 | 84 | private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
| 85 | 85 | { |
@@ -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 | |
@@ -26,8 +26,6 @@ |
||
| 26 | 26 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 27 | 27 | use phpDocumentor\Reflection\Types\Context; |
| 28 | 28 | use phpDocumentor\Reflection\Types\ContextFactory; |
| 29 | -use PhpParser\Comment\Doc; |
|
| 30 | -use PhpParser\Lexer; |
|
| 31 | 29 | use PhpParser\Node; |
| 32 | 30 | use PhpParser\Node\Stmt\Class_ as ClassNode; |
| 33 | 31 | use PhpParser\Node\Stmt\Function_ as FunctionNode; |
@@ -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 @@ |
||
| 13 | 13 | namespace phpDocumentor\Reflection\Php\Factory; |
| 14 | 14 | |
| 15 | 15 | use InvalidArgumentException; |
| 16 | -use phpDocumentor\Reflection\Fqsen; |
|
| 17 | 16 | use phpDocumentor\Reflection\Php\Factory; |
| 18 | 17 | use phpDocumentor\Reflection\Php\Function_ as FunctionDescriptor; |
| 19 | 18 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * @param Doc $docBlock |
| 98 | 98 | * @param StrategyContainer $strategies |
| 99 | 99 | * @param Context $context |
| 100 | - * @return null|\phpDocumentor\Reflection\DocBlock |
|
| 100 | + * @return null|\phpDocumentor\Reflection\Element |
|
| 101 | 101 | */ |
| 102 | 102 | private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
| 103 | 103 | { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * @param Doc $docBlock |
| 98 | 98 | * @param StrategyContainer $strategies |
| 99 | 99 | * @param Context $context |
| 100 | - * @return null|\phpDocumentor\Reflection\DocBlock |
|
| 100 | + * @return null|\phpDocumentor\Reflection\Element |
|
| 101 | 101 | */ |
| 102 | 102 | private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
| 103 | 103 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Returns true when the strategy is able to handle the object. |
| 50 | 50 | * |
| 51 | - * @param object $object object to check. |
|
| 51 | + * @param PropertyIterator $object object to check. |
|
| 52 | 52 | * @return boolean |
| 53 | 53 | */ |
| 54 | 54 | public function matches($object) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @param Doc $docBlock |
| 109 | 109 | * @param StrategyContainer $strategies |
| 110 | 110 | * @param Context $context |
| 111 | - * @return null|\phpDocumentor\Reflection\DocBlock |
|
| 111 | + * @return null|\phpDocumentor\Reflection\Element |
|
| 112 | 112 | */ |
| 113 | 113 | private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
| 114 | 114 | { |