@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | public function hasConstructor(): bool |
| 37 | 37 | { |
| 38 | - return \count(array_filter($this->methods, function (Method $function) { |
|
| 38 | + return \count(array_filter($this->methods, function(Method $function) { |
|
| 39 | 39 | return $function->isConstructor(); |
| 40 | 40 | })) === 1; |
| 41 | 41 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | return []; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - $constructors = array_filter($this->methods, function (Method $method) { |
|
| 50 | + $constructors = array_filter($this->methods, function(Method $method) { |
|
| 51 | 51 | return $method->isConstructor(); |
| 52 | 52 | }); |
| 53 | 53 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | public function isAbstract(): bool |
| 63 | 63 | { |
| 64 | - return \count(array_filter($this->methods(), function (Method $method) { |
|
| 64 | + return \count(array_filter($this->methods(), function(Method $method) { |
|
| 65 | 65 | return $method->isAbstract(); |
| 66 | 66 | })) > 0; |
| 67 | 67 | } |
@@ -73,14 +73,14 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | public function countAttributesByVisibility(Visibility $modifier): int |
| 75 | 75 | { |
| 76 | - return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) { |
|
| 76 | + return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) { |
|
| 77 | 77 | return $attribute->hasVisibility($modifier); |
| 78 | 78 | })); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | public function countTypedAttributesByVisibility(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->hasTypeDeclaration() && $attribute->hasVisibility($modifier); |
| 85 | 85 | })); |
| 86 | 86 | } |