@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | /** @param Name[] $interfaces */ |
| 47 | 47 | private function resolveInterfaces(array $interfaces, Codebase $codebase): void |
| 48 | 48 | { |
| 49 | - array_map(static function (Name $interface) use ($codebase): void { |
|
| 50 | - if (! $codebase->has($interface)) { |
|
| 49 | + array_map(static function(Name $interface) use ($codebase): void { |
|
| 50 | + if (!$codebase->has($interface)) { |
|
| 51 | 51 | $codebase->add(new InterfaceDefinition($interface)); |
| 52 | 52 | } |
| 53 | 53 | }, $interfaces); |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | /** @param Name[] $traits */ |
| 57 | 57 | private function resolveTraits(array $traits, Codebase $codebase): void |
| 58 | 58 | { |
| 59 | - array_map(static function (Name $trait) use ($codebase): void { |
|
| 60 | - if (! $codebase->has($trait)) { |
|
| 59 | + array_map(static function(Name $trait) use ($codebase): void { |
|
| 60 | + if (!$codebase->has($trait)) { |
|
| 61 | 61 | $codebase->add(new TraitDefinition($trait)); |
| 62 | 62 | } |
| 63 | 63 | }, $traits); |
@@ -65,11 +65,11 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | private function resolveExternalParentClass(ClassDefinition $definition, Codebase $codebase): void |
| 67 | 67 | { |
| 68 | - if (! $definition->hasParent()) { |
|
| 68 | + if (!$definition->hasParent()) { |
|
| 69 | 69 | return; |
| 70 | 70 | } |
| 71 | 71 | $parent = $definition->parent(); |
| 72 | - if (! $codebase->has($parent)) { |
|
| 72 | + if (!$codebase->has($parent)) { |
|
| 73 | 73 | $codebase->add(new ClassDefinition($parent)); |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** @return Name[] */ |
| 80 | 80 | public function references(): array |
| 81 | 81 | { |
| 82 | - if (! $this->isPresent()) { |
|
| 82 | + if (!$this->isPresent()) { |
|
| 83 | 83 | return []; |
| 84 | 84 | } |
| 85 | 85 | if ($this->isBuiltIn()) { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | $typesFromUnion = array_map(static fn (Name $name) => TypeDeclaration::from($name->fullName()), $this->names); |
| 93 | - $references = array_filter($typesFromUnion, static fn (TypeDeclaration $type) => ! $type->isBuiltIn()); |
|
| 93 | + $references = array_filter($typesFromUnion, static fn (TypeDeclaration $type) => !$type->isBuiltIn()); |
|
| 94 | 94 | |
| 95 | 95 | return array_map( |
| 96 | 96 | static fn (TypeDeclaration $reference) => $reference->isArray() |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public function isBuiltIn(): bool |
| 108 | 108 | { |
| 109 | - if (! $this->isRegularType()) { |
|
| 109 | + if (!$this->isRegularType()) { |
|
| 110 | 110 | return false; |
| 111 | 111 | } |
| 112 | 112 | $type = (string) $this->names[0]; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | { |
| 59 | 59 | $edges = []; |
| 60 | 60 | foreach ($variables as $parameter) { |
| 61 | - if (! $this->needAssociation($class, $parameter)) { |
|
| 61 | + if (!$this->needAssociation($class, $parameter)) { |
|
| 62 | 62 | continue; |
| 63 | 63 | } |
| 64 | 64 | $edges[] = $this->addAssociations($class, $parameter, $codebase); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | private function needAssociation(ClassDefinition $class, HasType $property): bool |
| 81 | 81 | { |
| 82 | - return ! $this->isAssociationResolved($class, $property); |
|
| 82 | + return !$this->isAssociationResolved($class, $property); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | private function isAssociationResolved(ClassDefinition $class, HasType $property): bool |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | final class VisibilityBuilder |
| 15 | 15 | { |
| 16 | - public function build(Property|ClassMethod|ClassConst $member): Visibility |
|
| 16 | + public function build(Property | ClassMethod | ClassConst $member): Visibility |
|
| 17 | 17 | { |
| 18 | 18 | return match (true) { |
| 19 | 19 | $member->isPublic() => Visibility::PUBLIC, |