@@ -106,7 +106,7 @@ |
||
106 | 106 | * @param Doc $docBlock |
107 | 107 | * @param StrategyContainer $strategies |
108 | 108 | * @param Context $context |
109 | - * @return null|\phpDocumentor\Reflection\DocBlock |
|
109 | + * @return null|Element |
|
110 | 110 | */ |
111 | 111 | private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null) |
112 | 112 | { |
@@ -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\Factory; |
14 | 14 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | break; |
81 | 81 | case TraitUse::class: |
82 | 82 | foreach ($stmt->traits as $use) { |
83 | - $trait->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
83 | + $trait->addUsedTrait(new Fqsen('\\' . $use->toString())); |
|
84 | 84 | } |
85 | 85 | break; |
86 | 86 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | * Gets Namespace from the project if it exists, otherwise returns a new namepace |
104 | 104 | * |
105 | 105 | * @param Project $project |
106 | - * @param $name |
|
106 | + * @param string $name |
|
107 | 107 | * @return Namespace_ |
108 | 108 | */ |
109 | 109 | private function getNamespaceByName(Project $project, $name) |
@@ -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 | namespace phpDocumentor\Reflection\Php; |
14 | 14 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public static function createInstance() |
48 | 48 | { |
49 | - return new static( |
|
49 | + return new static( |
|
50 | 50 | [ |
51 | 51 | new Factory\Argument(new PrettyPrinter()), |
52 | 52 | new Factory\Class_(), |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection; |
14 | 14 | |
15 | -use Mockery as m; |
|
16 | 15 | use phpDocumentor\Reflection\DocBlock\Tags\Param; |
17 | 16 | use phpDocumentor\Reflection\Php\ProjectFactory; |
18 | 17 | use phpDocumentor\Reflection\Types\Object_; |
@@ -12,18 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection; |
14 | 14 | |
15 | -use Mockery as m; |
|
16 | -use phpDocumentor\Reflection\Php\Factory\Argument; |
|
17 | -use phpDocumentor\Reflection\Php\Factory\Class_; |
|
18 | -use phpDocumentor\Reflection\Php\Factory\Constant; |
|
19 | -use phpDocumentor\Reflection\Php\Factory\DocBlock as DocBlockStrategy; |
|
20 | -use phpDocumentor\Reflection\Php\Factory\File; |
|
21 | -use phpDocumentor\Reflection\Php\NodesFactory; |
|
22 | -use phpDocumentor\Reflection\Php\Factory\Function_; |
|
23 | -use phpDocumentor\Reflection\Php\Factory\Interface_; |
|
24 | -use phpDocumentor\Reflection\Php\Factory\Method; |
|
25 | -use phpDocumentor\Reflection\Php\Factory\Property; |
|
26 | -use phpDocumentor\Reflection\Php\Factory\Trait_; |
|
27 | 15 | use phpDocumentor\Reflection\Php\ProjectFactory; |
28 | 16 | |
29 | 17 | /** |
@@ -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 | */ |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use phpDocumentor\Reflection\Php\Argument as ArgumentDescriptor; |
15 | 15 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategies; |
16 | 16 | use phpDocumentor\Reflection\PrettyPrinter; |
17 | -use phpDocumentor\Reflection\Types\Context; |
|
18 | 17 | use PhpParser\Node\Param; |
19 | 18 | use Mockery as m; |
20 | 19 | use PhpParser\Node\Scalar\String_; |
@@ -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 | { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use phpDocumentor\Reflection\Fqsen; |
22 | 22 | use phpDocumentor\Reflection\Php\StrategyContainer; |
23 | 23 | use phpDocumentor\Reflection\DocBlock as DocBlockElement; |
24 | -use phpDocumentor\Reflection\Types\Context; |
|
25 | 24 | use PhpParser\Node\Const_; |
26 | 25 | use PhpParser\Node\Expr\Variable; |
27 | 26 | use PhpParser\Node\Name; |
@@ -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 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use phpDocumentor\Reflection\DocBlock as DocblockDescriptor; |
18 | 18 | use phpDocumentor\Reflection\DocBlockFactoryInterface; |
19 | 19 | use phpDocumentor\Reflection\Php\StrategyContainer; |
20 | -use phpDocumentor\Reflection\Types\Context; |
|
21 | 20 | use PhpParser\Comment\Doc; |
22 | 21 | |
23 | 22 | /** |