@@ -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 | |
@@ -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 |