@@ -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\NullableType; |
26 | 23 | use PhpParser\Node\Stmt\Function_ as FunctionNode; |
27 | 24 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | if ($object->getReturnType() !== null) { |
64 | 64 | $typeResolver = new TypeResolver(); |
65 | 65 | if ($object->getReturnType() instanceof NullableType) { |
66 | - $typeString = '?' . $object->getReturnType()->type; |
|
66 | + $typeString = '?'.$object->getReturnType()->type; |
|
67 | 67 | } else { |
68 | 68 | $typeString = (string)$object->getReturnType(); |
69 | 69 | } |
@@ -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\NullableType; |
24 | 23 | use PhpParser\Node\Stmt\ClassMethod; |
25 | 24 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | if ($object->getReturnType() !== null) { |
56 | 56 | $typeResolver = new TypeResolver(); |
57 | 57 | if ($object->getReturnType() instanceof NullableType) { |
58 | - $typeString = '?' . $object->getReturnType()->type; |
|
58 | + $typeString = '?'.$object->getReturnType()->type; |
|
59 | 59 | } else { |
60 | 60 | $typeString = (string)$object->getReturnType(); |
61 | 61 | } |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use phpDocumentor\Reflection\Php\Factory\Function_; |
20 | 20 | use Mockery as m; |
21 | 21 | use phpDocumentor\Reflection\Php\StrategyContainer; |
22 | -use phpDocumentor\Reflection\Types\Context; |
|
23 | 22 | use phpDocumentor\Reflection\Types\Integer; |
24 | 23 | use phpDocumentor\Reflection\Types\Nullable; |
25 | 24 | use PhpParser\Comment\Doc; |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use phpDocumentor\Reflection\Php\Factory; |
19 | 19 | use Mockery as m; |
20 | 20 | use phpDocumentor\Reflection\Php\StrategyContainer; |
21 | -use phpDocumentor\Reflection\Types\Context; |
|
22 | 21 | use phpDocumentor\Reflection\Types\Integer; |
23 | 22 | use phpDocumentor\Reflection\Types\Nullable; |
24 | 23 | use PhpParser\Comment\Doc; |