@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | private function elementsToDotLanguage(): string |
| 64 | 64 | { |
| 65 | - $dotFormat = array_map(function (HasDotRepresentation $element) { |
|
| 65 | + $dotFormat = array_map(function(HasDotRepresentation $element) { |
|
| 66 | 66 | return $element->toDotLanguage(); |
| 67 | 67 | }, $this->dotElements); |
| 68 | 68 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | public function hasConstructor(): bool |
| 47 | 47 | { |
| 48 | - return \count(array_filter($this->functions, function (Method $function) { |
|
| 48 | + return \count(array_filter($this->functions, function(Method $function) { |
|
| 49 | 49 | return $function->isConstructor(); |
| 50 | 50 | })) === 1; |
| 51 | 51 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | return []; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - $constructors = array_filter($this->functions, function (Method $function) { |
|
| 60 | + $constructors = array_filter($this->functions, function(Method $function) { |
|
| 61 | 61 | return $function->isConstructor(); |
| 62 | 62 | }); |
| 63 | 63 | |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | return TypeDeclaration::absent(); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - $type = null; // There might be no type information in the comment |
|
| 99 | + $type = null; // There might be no type information in the comment |
|
| 100 | 100 | $matches = []; |
| 101 | 101 | $arrayExpression = '/^[\s*]*@var\s+array\(\s*(\w+\s*=>\s*)?(\w+)\s*\).*$/m'; |
| 102 | 102 | if (preg_match($arrayExpression, $comment, $matches)) { |