@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function build(array $methods): array |
| 35 | 35 | { |
| 36 | - return array_map(function (ClassMethod $method) { |
|
| 36 | + return array_map(function(ClassMethod $method) { |
|
| 37 | 37 | return $this->buildMethod($method); |
| 38 | 38 | }, $this->runFilters($methods)); |
| 39 | 39 | } |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | private function buildParameters(array $parameters, ?string $docBlock): array |
| 63 | 63 | { |
| 64 | - return array_map(function (Param $parameter) use ($docBlock) { |
|
| 64 | + return array_map(function(Param $parameter) use ($docBlock) { |
|
| 65 | 65 | $name = "\${$parameter->name}"; |
| 66 | 66 | $type = $parameter->type; |
| 67 | 67 | if ($type !== null) { |
| 68 | - if($type instanceof \PhpParser\Node\NullableType) { |
|
| 68 | + if ($type instanceof \PhpParser\Node\NullableType) { |
|
| 69 | 69 | $type = $type->type; |
| 70 | 70 | } |
| 71 | 71 | $typeDeclaration = TypeDeclaration::from($type); |