@@ -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 | |
@@ -155,6 +155,7 @@ |
||
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | 157 | * @param Node[] $nodes |
| 158 | + * @param StrategyContainer $strategies |
|
| 158 | 159 | */ |
| 159 | 160 | protected function createFileDocBlock( |
| 160 | 161 | ?Doc $docBlock = null, |
@@ -16,7 +16,6 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | use phpDocumentor\Reflection\DocBlock as DocBlockInstance; |
| 18 | 18 | use phpDocumentor\Reflection\File as FileSystemFile; |
| 19 | -use phpDocumentor\Reflection\Fqsen; |
|
| 20 | 19 | use phpDocumentor\Reflection\Middleware\ChainFactory; |
| 21 | 20 | use phpDocumentor\Reflection\Middleware\Middleware; |
| 22 | 21 | use phpDocumentor\Reflection\Php\Factory\File\CreateCommand; |
@@ -25,7 +24,6 @@ discard block |
||
| 25 | 24 | use phpDocumentor\Reflection\Php\ProjectFactoryStrategy; |
| 26 | 25 | use phpDocumentor\Reflection\Php\StrategyContainer; |
| 27 | 26 | use phpDocumentor\Reflection\Types\Context; |
| 28 | -use phpDocumentor\Reflection\Types\ContextFactory; |
|
| 29 | 27 | use phpDocumentor\Reflection\Types\NamespaceNodeToContext; |
| 30 | 28 | use PhpParser\Comment\Doc; |
| 31 | 29 | use PhpParser\Node; |
@@ -366,6 +366,7 @@ discard block |
||
| 366 | 366 | * |
| 367 | 367 | * @throws ExpectationFailedException |
| 368 | 368 | * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException |
| 369 | + * @param boolean $isNativeType |
|
| 369 | 370 | */ |
| 370 | 371 | public static function assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void |
| 371 | 372 | { |
@@ -433,6 +434,7 @@ discard block |
||
| 433 | 434 | * |
| 434 | 435 | * @throws ExpectationFailedException |
| 435 | 436 | * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException |
| 437 | + * @param boolean $isNativeType |
|
| 436 | 438 | */ |
| 437 | 439 | public static function assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = null, string $message = ''): void |
| 438 | 440 | { |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | public function __invoke(?Namespace_ $namespace) : Context |
| 15 | 15 | { |
| 16 | - if ( ! $namespace) { |
|
| 16 | + if (!$namespace) { |
|
| 17 | 17 | return new Context(''); |
| 18 | 18 | } |
| 19 | 19 | |
@@ -29,16 +29,16 @@ discard block |
||
| 29 | 29 | private function aliasesToFullyQualifiedNames(Namespace_ $namespace) : array |
| 30 | 30 | { |
| 31 | 31 | // flatten(flatten(map(stuff))) |
| 32 | - return \array_merge([], ...\array_merge([], ...\array_map(function ($use) : array { |
|
| 32 | + return \array_merge([], ...\array_merge([], ...\array_map(function($use) : array { |
|
| 33 | 33 | /** @var $use Use_|GroupUse */ |
| 34 | 34 | |
| 35 | - return \array_map(function (UseUse $useUse) use ($use) : array { |
|
| 35 | + return \array_map(function(UseUse $useUse) use ($use) : array { |
|
| 36 | 36 | |
| 37 | 37 | if ($use instanceof GroupUse) { |
| 38 | - return [(string) $useUse->getAlias() => $use->prefix->toString() . '\\' . $useUse->name->toString()]; |
|
| 38 | + return [(string)$useUse->getAlias() => $use->prefix->toString().'\\'.$useUse->name->toString()]; |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - return [(string) $useUse->getAlias() => $useUse->name->toString()]; |
|
| 41 | + return [(string)$useUse->getAlias() => $useUse->name->toString()]; |
|
| 42 | 42 | }, $use->uses); |
| 43 | 43 | }, $this->classAlikeUses($namespace)))); |
| 44 | 44 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | return \array_filter( |
| 54 | 54 | $namespace->stmts ?? [], |
| 55 | - function (Node $node) : bool { |
|
| 55 | + function(Node $node) : bool { |
|
| 56 | 56 | return ( |
| 57 | 57 | $node instanceof Use_ |
| 58 | 58 | || $node instanceof GroupUse |