@@ -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; |
@@ -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 |
@@ -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; |
@@ -26,7 +25,6 @@ discard block |
||
26 | 25 | use phpDocumentor\Reflection\Types\Context; |
27 | 26 | use phpDocumentor\Reflection\Types\ContextFactory; |
28 | 27 | use PhpParser\Comment\Doc; |
29 | -use PhpParser\Lexer; |
|
30 | 28 | use PhpParser\Node; |
31 | 29 | use PhpParser\Node\Stmt\Class_ as ClassNode; |
32 | 30 | use PhpParser\Node\Stmt\Function_ as FunctionNode; |
@@ -96,7 +96,7 @@ |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @param CreateCommand $command |
|
99 | + * @param FileCreateCommand $command |
|
100 | 100 | * @return FileElement |
101 | 101 | */ |
102 | 102 | private function createFile(FileCreateCommand $command) |
@@ -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 | } |
@@ -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 |
@@ -12,15 +12,11 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection\Php\Factory; |
14 | 14 | |
15 | -use InvalidArgumentException; |
|
16 | -use phpDocumentor\Reflection\Element; |
|
17 | 15 | use phpDocumentor\Reflection\Fqsen; |
18 | 16 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
19 | 17 | use phpDocumentor\Reflection\Php\StrategyContainer; |
20 | 18 | use phpDocumentor\Reflection\Php\Trait_ as TraitElement; |
21 | 19 | use phpDocumentor\Reflection\Types\Context; |
22 | -use PhpParser\Comment\Doc; |
|
23 | -use PhpParser\Node; |
|
24 | 20 | use PhpParser\Node\Stmt\ClassMethod; |
25 | 21 | use PhpParser\Node\Stmt\Property as PropertyNode; |
26 | 22 | use PhpParser\Node\Stmt\Trait_ as TraitNode; |
@@ -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 |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * phpDocumentor |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * @author Mike van Riel <[email protected]> |
|
8 | - * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) |
|
9 | - * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
10 | - * @link http://phpdoc.org |
|
11 | - */ |
|
3 | + * phpDocumentor |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * @author Mike van Riel <[email protected]> |
|
8 | + * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) |
|
9 | + * @license http://www.opensource.org/licenses/mit-license.php MIT |
|
10 | + * @link http://phpdoc.org |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection; |
14 | 14 |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |