@@ -14,17 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | use Mockery as m; |
| 16 | 16 | use phpDocumentor\Reflection\File\LocalFile; |
| 17 | -use phpDocumentor\Reflection\Php\Factory\Argument; |
|
| 18 | -use phpDocumentor\Reflection\Php\Factory\Class_; |
|
| 19 | -use phpDocumentor\Reflection\Php\Factory\Constant; |
|
| 20 | -use phpDocumentor\Reflection\Php\Factory\DocBlock as DocBlockStrategy; |
|
| 21 | -use phpDocumentor\Reflection\Php\Factory\File; |
|
| 22 | -use phpDocumentor\Reflection\Php\NodesFactory; |
|
| 23 | -use phpDocumentor\Reflection\Php\Factory\Function_; |
|
| 24 | -use phpDocumentor\Reflection\Php\Factory\Interface_; |
|
| 25 | -use phpDocumentor\Reflection\Php\Factory\Method; |
|
| 26 | -use phpDocumentor\Reflection\Php\Factory\Property; |
|
| 27 | -use phpDocumentor\Reflection\Php\Factory\Trait_; |
|
| 28 | 17 | use phpDocumentor\Reflection\Php\ProjectFactory; |
| 29 | 18 | use PHPUnit\Framework\TestCase; |
| 30 | 19 | |
@@ -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 | } |
@@ -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-2018 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-2018 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\NullableType; |
| 24 | 23 | use PhpParser\Node\Stmt\ClassMethod; |
| 25 | 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 | } |
@@ -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-2018 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-2018 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\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; |
@@ -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-2018 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-2018 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 | |