Completed
Push — master ( 716959...c2acd0 )
by Luis
04:37 queued 02:39
created
src/Code/Definition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function countMethodsByVisibility(Visibility $modifier): int
42 42
     {
43
-        return \count(array_filter($this->methods, function (Method $method) use ($modifier) {
43
+        return \count(array_filter($this->methods, function(Method $method) use ($modifier) {
44 44
             return $method->hasVisibility($modifier);
45 45
         }));
46 46
     }
Please login to merge, or discard this patch.
src/Code/ClassDefinition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function hasConstructor(): bool
36 36
     {
37
-        return \count(array_filter($this->methods, function (Method $function) {
37
+        return \count(array_filter($this->methods, function(Method $function) {
38 38
             return $function->isConstructor();
39 39
         })) === 1;
40 40
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             return [];
47 47
         }
48 48
 
49
-        $constructors = array_filter($this->methods, function (Method $method) {
49
+        $constructors = array_filter($this->methods, function(Method $method) {
50 50
             return $method->isConstructor();
51 51
         });
52 52
 
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function countAttributesByVisibility(Visibility $modifier): int
62 62
     {
63
-        return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) {
63
+        return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) {
64 64
             return $attribute->hasVisibility($modifier);
65 65
         }));
66 66
     }
67 67
 
68 68
     public function countTypedAttributesByVisibility(Visibility $modifier): int
69 69
     {
70
-        return \count(array_filter($this->attributes, function (Attribute $attribute) use ($modifier) {
70
+        return \count(array_filter($this->attributes, function(Attribute $attribute) use ($modifier) {
71 71
             return $attribute->isTyped() && $attribute->hasVisibility($modifier);
72 72
         }));
73 73
     }
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
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function attributesAssociationsFrom(ClassDefinition $class): array
43 43
     {
44
-        return array_map(function (Variable $attribute) use ($class) {
44
+        return array_map(function(Variable $attribute) use ($class) {
45 45
             return $this->addAssociation($class, $attribute);
46 46
         }, array_filter($class->attributes(), [$this, 'needAssociation']));
47 47
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         if (!$class->hasConstructor()) {
60 60
             return [];
61 61
         }
62
-        return array_map(function (Variable $attribute) use ($class) {
62
+        return array_map(function(Variable $attribute) use ($class) {
63 63
             return $this->addAssociation($class, $attribute);
64 64
         }, array_filter($class->constructorParameters(), [$this, 'needAssociation']));
65 65
     }
Please login to merge, or discard this patch.