Passed
Push — master ( 8d387d...2ce63d )
by Luis
03:13
created
src/Graphviz/Digraph.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     private function elementsToDotLanguage(): string
64 64
     {
65
-        $dotFormat = array_map(function (HasDotRepresentation $element) {
65
+        $dotFormat = array_map(function(HasDotRepresentation $element) {
66 66
             return $element->toDotLanguage();
67 67
         }, $this->dotElements);
68 68
 
Please login to merge, or discard this patch.
src/Parser/StructureBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     protected function buildInterfaces(RawDefinitions $definitions, array $implements): array
78 78
     {
79
-        return array_map(function (string $interface) use ($definitions) {
79
+        return array_map(function(string $interface) use ($definitions) {
80 80
             return $this->resolveRelatedInterface($definitions, $interface);
81 81
         }, $implements);
82 82
     }
Please login to merge, or discard this patch.
src/Templates/TemplateEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         try {
29 29
             return $this->twig->render($template, $values);
30
-        } catch (LoaderError | RuntimeError  | SyntaxError $e) {
30
+        } catch (LoaderError | RuntimeError | SyntaxError $e) {
31 31
             throw new TemplateFailure($e);
32 32
         }
33 33
     }
Please login to merge, or discard this patch.
src/Parser/Raw/Builders/RawClassBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     /** @return string[] */
56 56
     private function buildInterfaces(array $implements): array
57 57
     {
58
-        return array_map(function (Name $name) {
58
+        return array_map(function(Name $name) {
59 59
             return $name->getLast();
60 60
         }, $implements);
61 61
     }
Please login to merge, or discard this patch.
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/Graphviz/Builders/EdgesBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function fromAttributes(ClassDefinition $class, Structure $structure): array
35 35
     {
36
-        return array_map(function (Variable $attribute) use ($class, $structure) {
36
+        return array_map(function(Variable $attribute) use ($class, $structure) {
37 37
             return $this->addAssociation($class, $attribute, $structure);
38 38
         }, array_filter($class->attributes(), [$this, 'needAssociation']));
39 39
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if (!$class->hasConstructor()) {
52 52
             return [];
53 53
         }
54
-        return array_map(function (Variable $attribute) use ($class, $structure) {
54
+        return array_map(function(Variable $attribute) use ($class, $structure) {
55 55
             return $this->addAssociation($class, $attribute, $structure);
56 56
         }, array_filter($class->constructorParameters(), [$this, 'needAssociation']));
57 57
     }
Please login to merge, or discard this patch.
src/Parser/Raw/Builders/AttributesBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
     /** @param \PhpParser\Node[] $definitionAttributes */
35 35
     public function build(array $definitionAttributes): array
36 36
     {
37
-        $attributes = array_filter($definitionAttributes, function ($attribute) {
37
+        $attributes = array_filter($definitionAttributes, function($attribute) {
38 38
             return $attribute instanceof Property;
39 39
         });
40 40
 
41
-        return array_map(function (Property $attribute) {
41
+        return array_map(function(Property $attribute) {
42 42
             return [
43 43
                 "\${$attribute->props[0]->name}",
44 44
                 $this->resolveVisibility($attribute),
Please login to merge, or discard this patch.
src/Parser/Raw/Builders/ConstantsBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
     /** @param \PhpParser\Node[] $classAttributes */
24 24
     public function build(array $classAttributes): array
25 25
     {
26
-        $constants = array_filter($classAttributes, function ($attribute) {
26
+        $constants = array_filter($classAttributes, function($attribute) {
27 27
             return $attribute instanceof ClassConst;
28 28
         });
29
-        return array_map(function (ClassConst $constant) {
29
+        return array_map(function(ClassConst $constant) {
30 30
             return [
31 31
                 "{$constant->consts[0]->name}",
32 32
                 $this->determineType($constant->consts[0]),
Please login to merge, or discard this patch.
src/Parser/Raw/Builders/MethodsBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /** @param ClassMethod[] $classMethods */
38 38
     public function build(array $classMethods): array
39 39
     {
40
-        return array_map(function (ClassMethod $method) {
40
+        return array_map(function(ClassMethod $method) {
41 41
             return $this->buildMethod($method);
42 42
         }, $this->runFilters($classMethods));
43 43
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     private function buildParameters(array $parameters): array
58 58
     {
59
-        return array_map(function (Param $parameter) {
59
+        return array_map(function(Param $parameter) {
60 60
             return [
61 61
                 "\${$parameter->name}",
62 62
                 $parameter->type,
Please login to merge, or discard this patch.