Passed
Push — master ( b5a8b1...6c4839 )
by Luis
04:45
created
src/Parser/Code/ExternalAssociationsResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 
41 41
     private function resolveExternalAttributes(ClassDefinition $definition, Codebase $codebase): void
42 42
     {
43
-        array_map(function (Property $property) use ($codebase): void {
43
+        array_map(function(Property $property) use ($codebase): void {
44 44
             $this->resolveExternalAssociationsFromTypeNames($property->references(), $codebase);
45 45
         }, $definition->properties());
46 46
     }
47 47
 
48 48
     private function resolveExternalConstructorParameters(ClassDefinition $definition, Codebase $codebase): void
49 49
     {
50
-        array_map(function (Parameter $parameter) use ($codebase): void {
50
+        array_map(function(Parameter $parameter) use ($codebase): void {
51 51
             $this->resolveExternalAssociationsFromTypeNames($parameter->references(), $codebase);
52 52
         }, $definition->constructorParameters());
53 53
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /** @param Name[] $references */
56 56
     private function resolveExternalAssociationsFromTypeNames(array $references, Codebase $codebase): void
57 57
     {
58
-        array_map(static function (Name $reference) use ($codebase): void {
58
+        array_map(static function(Name $reference) use ($codebase): void {
59 59
             if ($codebase->has($reference)) {
60 60
                 return;
61 61
             }
Please login to merge, or discard this patch.
src/Parser/Code/ExternalDefinitionsResolver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Code/Variables/TypeDeclaration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Graphviz/Builders/EdgesBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.