@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return []; |
67 | 67 | } |
68 | 68 | |
69 | - $constructors = array_filter($this->methods, function (Method $method) { |
|
69 | + $constructors = array_filter($this->methods, function(Method $method) { |
|
70 | 70 | return $method->isConstructor(); |
71 | 71 | }); |
72 | 72 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function countAttributesByVisibility(Visibility $modifier): int |
82 | 82 | { |
83 | - return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) { |
|
83 | + return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) { |
|
84 | 84 | return $attribute->hasVisibility($modifier); |
85 | 85 | })); |
86 | 86 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function countTypedAttributesByVisibility(Visibility $modifier): int |
94 | 94 | { |
95 | - return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) { |
|
95 | + return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) { |
|
96 | 96 | return $attribute->hasTypeDeclaration() && $attribute->hasVisibility($modifier); |
97 | 97 | })); |
98 | 98 | } |
@@ -148,14 +148,14 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function isAbstract(): bool |
150 | 150 | { |
151 | - return \count(array_filter($this->methods(), function (Method $method) { |
|
151 | + return \count(array_filter($this->methods(), function(Method $method) { |
|
152 | 152 | return $method->isAbstract(); |
153 | 153 | })) > 0; |
154 | 154 | } |
155 | 155 | |
156 | 156 | private function hasConstructor(): bool |
157 | 157 | { |
158 | - return \count(array_filter($this->methods, function (Method $function) { |
|
158 | + return \count(array_filter($this->methods, function(Method $function) { |
|
159 | 159 | return $function->isConstructor(); |
160 | 160 | })) === 1; |
161 | 161 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** @param \PhUml\Code\Name[] $interfaces */ |
56 | 56 | private function resolveExternalInterfaces(array $interfaces, Codebase $codebase): void |
57 | 57 | { |
58 | - array_map(function (Name $interface) use ($codebase) { |
|
58 | + array_map(function(Name $interface) use ($codebase) { |
|
59 | 59 | if (!$codebase->has($interface)) { |
60 | 60 | $codebase->add($this->externalInterface($interface)); |
61 | 61 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** @param \PhUml\Code\Name[] $interfaces */ |
66 | 66 | private function resolveExternalTraits(array $traits, Codebase $codebase): void |
67 | 67 | { |
68 | - array_map(function (Name $trait) use ($codebase) { |
|
68 | + array_map(function(Name $trait) use ($codebase) { |
|
69 | 69 | if (!$codebase->has($trait)) { |
70 | 70 | $codebase->add($this->externalTrait($trait)); |
71 | 71 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** @param Node[] $nodes */ |
18 | 18 | protected function buildTraits(array $nodes): array |
19 | 19 | { |
20 | - $useStatements = array_filter($nodes, function (Node $node) { |
|
20 | + $useStatements = array_filter($nodes, function(Node $node) { |
|
21 | 21 | return $node instanceof TraitUse; |
22 | 22 | }); |
23 | 23 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | protected function buildInterfaces(array $implements): array |
20 | 20 | { |
21 | - return array_map(function (Name $name) { |
|
21 | + return array_map(function(Name $name) { |
|
22 | 22 | return DefinitionName::from($name->getLast()); |
23 | 23 | }, $implements); |
24 | 24 | } |