@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace phpDocumentor\Reflection\Php; |
15 | 15 | |
16 | 16 | use phpDocumentor\Reflection\NodeVisitor\ElementNameResolver; |
17 | -use PhpParser\Lexer; |
|
18 | 17 | use PhpParser\NodeTraverser; |
19 | 18 | use PhpParser\NodeVisitor\NameResolver; |
20 | 19 | use PhpParser\Parser; |
@@ -33,7 +33,7 @@ |
||
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 | } |
@@ -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,14 +25,12 @@ 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; |
33 | 31 | use PhpParser\Node\Stmt\Interface_ as InterfaceNode; |
34 | 32 | use PhpParser\Node\Stmt\Namespace_ as NamespaceNode; |
35 | 33 | use PhpParser\Node\Stmt\Trait_ as TraitNode; |
36 | -use PhpParser\NodeAbstract; |
|
37 | 34 | |
38 | 35 | /** |
39 | 36 | * Strategy to create File element from the provided filename. |
@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | $this->nodesFactory = $nodesFactory; |
58 | 58 | |
59 | - $lastCallable = function ($command) { |
|
59 | + $lastCallable = function($command) { |
|
60 | 60 | return $this->createFile($command); |
61 | 61 | }; |
62 | 62 |
@@ -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 |
@@ -12,8 +12,6 @@ discard block |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection\Php\Factory; |
14 | 14 | |
15 | -use InvalidArgumentException; |
|
16 | -use phpDocumentor\Reflection\Fqsen; |
|
17 | 15 | use phpDocumentor\Reflection\Location; |
18 | 16 | use phpDocumentor\Reflection\Php\Factory; |
19 | 17 | use phpDocumentor\Reflection\Php\Function_ as FunctionDescriptor; |
@@ -21,7 +19,6 @@ discard block |
||
21 | 19 | use phpDocumentor\Reflection\Php\StrategyContainer; |
22 | 20 | use phpDocumentor\Reflection\TypeResolver; |
23 | 21 | use phpDocumentor\Reflection\Types\Context; |
24 | -use PhpParser\Comment\Doc; |
|
25 | 22 | use PhpParser\Node\Stmt\Function_ as FunctionNode; |
26 | 23 | |
27 | 24 | /** |
@@ -73,7 +73,7 @@ |
||
73 | 73 | break; |
74 | 74 | case TraitUse::class: |
75 | 75 | foreach ($stmt->traits as $use) { |
76 | - $trait->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
76 | + $trait->addUsedTrait(new Fqsen('\\'.$use->toString())); |
|
77 | 77 | } |
78 | 78 | break; |
79 | 79 | } |
@@ -12,16 +12,12 @@ |
||
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\Location; |
19 | 17 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
20 | 18 | use phpDocumentor\Reflection\Php\StrategyContainer; |
21 | 19 | use phpDocumentor\Reflection\Php\Trait_ as TraitElement; |
22 | 20 | use phpDocumentor\Reflection\Types\Context; |
23 | -use PhpParser\Comment\Doc; |
|
24 | -use PhpParser\Node; |
|
25 | 21 | use PhpParser\Node\Stmt\ClassMethod; |
26 | 22 | use PhpParser\Node\Stmt\Property as PropertyNode; |
27 | 23 | 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\Factory; |
14 | 14 |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use phpDocumentor\Reflection\Php\Visibility; |
20 | 20 | use phpDocumentor\Reflection\TypeResolver; |
21 | 21 | use phpDocumentor\Reflection\Types\Context; |
22 | -use phpDocumentor\Reflection\Types\Mixed_; |
|
23 | 22 | use PhpParser\Node\Stmt\ClassMethod; |
24 | 23 | |
25 | 24 | /** |
@@ -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 |
@@ -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 |
@@ -12,7 +12,6 @@ discard block |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Reflection\Php\Factory; |
14 | 14 | |
15 | -use InvalidArgumentException; |
|
16 | 15 | use phpDocumentor\Reflection\Location; |
17 | 16 | use phpDocumentor\Reflection\Php\Factory; |
18 | 17 | use phpDocumentor\Reflection\Php\Property as PropertyDescriptor; |
@@ -21,7 +20,6 @@ discard block |
||
21 | 20 | use phpDocumentor\Reflection\Php\Visibility; |
22 | 21 | use phpDocumentor\Reflection\PrettyPrinter; |
23 | 22 | use phpDocumentor\Reflection\Types\Context; |
24 | -use PhpParser\Comment\Doc; |
|
25 | 23 | |
26 | 24 | /** |
27 | 25 | * Strategy to convert PropertyIterator to PropertyDescriptor |
@@ -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\Element; |
18 | 17 | use phpDocumentor\Reflection\Fqsen; |
19 | 18 | use phpDocumentor\Reflection\Location; |
@@ -21,12 +20,10 @@ discard block |
||
21 | 20 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
22 | 21 | use phpDocumentor\Reflection\Php\StrategyContainer; |
23 | 22 | use phpDocumentor\Reflection\Types\Context; |
24 | -use PhpParser\Node; |
|
25 | 23 | use PhpParser\Node\Stmt\Class_ as ClassNode; |
26 | 24 | use PhpParser\Node\Stmt\ClassConst; |
27 | 25 | use PhpParser\Node\Stmt\ClassMethod; |
28 | 26 | use PhpParser\Node\Stmt\Property as PropertyNode; |
29 | -use PhpParser\Comment\Doc; |
|
30 | 27 | use PhpParser\Node\Stmt\TraitUse; |
31 | 28 | |
32 | 29 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $classElement = new ClassElement( |
65 | 65 | $object->fqsen, |
66 | 66 | $docBlock, |
67 | - $object->extends ? new Fqsen('\\' . $object->extends) : null, |
|
67 | + $object->extends ? new Fqsen('\\'.$object->extends) : null, |
|
68 | 68 | $object->isAbstract(), |
69 | 69 | $object->isFinal(), |
70 | 70 | new Location($object->getLine()) |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | if (isset($object->implements)) { |
74 | 74 | foreach ($object->implements as $interfaceClassName) { |
75 | 75 | $classElement->addInterface( |
76 | - new Fqsen('\\' . $interfaceClassName->toString()) |
|
76 | + new Fqsen('\\'.$interfaceClassName->toString()) |
|
77 | 77 | ); |
78 | 78 | } |
79 | 79 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | switch (get_class($stmt)) { |
84 | 84 | case TraitUse::class: |
85 | 85 | foreach ($stmt->traits as $use) { |
86 | - $classElement->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
86 | + $classElement->addUsedTrait(new Fqsen('\\'.$use->toString())); |
|
87 | 87 | } |
88 | 88 | break; |
89 | 89 | case PropertyNode::class: |