@@ -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\Php\Class_ as ClassElement; |
@@ -22,13 +21,7 @@ discard block |
||
22 | 21 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
23 | 22 | use phpDocumentor\Reflection\Php\StrategyContainer; |
24 | 23 | use phpDocumentor\Reflection\Types\Context; |
25 | -use PhpParser\Node; |
|
26 | 24 | use PhpParser\Node\Stmt\Class_ as ClassNode; |
27 | -use PhpParser\Node\Stmt\ClassConst; |
|
28 | -use PhpParser\Node\Stmt\ClassMethod; |
|
29 | -use PhpParser\Node\Stmt\Property as PropertyNode; |
|
30 | -use PhpParser\Comment\Doc; |
|
31 | -use PhpParser\Node\Stmt\TraitUse; |
|
32 | 25 | |
33 | 26 | /** |
34 | 27 | * Strategy to create a ClassElement including all sub elements. |
@@ -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) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $this->callbacks[TraitUse::class] = function($classElement, $stmt) { |
34 | 34 | foreach ($stmt->traits as $use) { |
35 | - $classElement->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
35 | + $classElement->addUsedTrait(new Fqsen('\\' . $use->toString())); |
|
36 | 36 | } |
37 | 37 | }; |
38 | 38 | |
@@ -44,12 +44,12 @@ discard block |
||
44 | 44 | } |
45 | 45 | }; |
46 | 46 | |
47 | - $this->callbacks[ClassMethod::class] = function ($classElement, $stmt, $strategies, $context) { |
|
47 | + $this->callbacks[ClassMethod::class] = function($classElement, $stmt, $strategies, $context) { |
|
48 | 48 | $method = $this->createMember($stmt, $strategies, $context); |
49 | 49 | $classElement->addMethod($method); |
50 | 50 | }; |
51 | 51 | |
52 | - $this->callbacks[PropertyNode::class] = function ($classElement, $stmt, $strategies, $context) { |
|
52 | + $this->callbacks[PropertyNode::class] = function($classElement, $stmt, $strategies, $context) { |
|
53 | 53 | $properties = new PropertyIterator($stmt); |
54 | 54 | foreach ($properties as $property) { |
55 | 55 | $element = $this->createMember($property, $strategies, $context); |