Passed
Push — union-types ( b36cfd...cd7236 )
by Luis
13:54
created
src/Code/Methods/MethodDocBlock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     private function extractReturnType(?string $comment): void
53 53
     {
54
-        if (preg_match(self::RETURN_EXPRESSION, (string) $comment, $matches) === 1) {
54
+        if (preg_match(self::RETURN_EXPRESSION, (string)$comment, $matches) === 1) {
55 55
             $this->returnType = TypeDeclaration::from(trim($matches[1]));
56 56
             return;
57 57
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     private function extractParametersTypes(?string $comment): void
63 63
     {
64
-        if (preg_match_all(self::PARAMETER_EXPRESSION, (string) $comment, $matches) < 1) {
64
+        if (preg_match_all(self::PARAMETER_EXPRESSION, (string)$comment, $matches) < 1) {
65 65
             $this->parametersTypes = [];
66 66
             return;
67 67
         }
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
         return \count(array_filter(
42 42
             $this->methods,
43
-            static fn (Method $method): bool => $method->hasVisibility($modifier)
43
+            static fn(Method $method): bool => $method->hasVisibility($modifier)
44 44
         ));
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
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function constructorParameters(): array
68 68
     {
69
-        $constructors = array_filter($this->methods, static fn (Method $method): bool => $method->isConstructor());
69
+        $constructors = array_filter($this->methods, static fn(Method $method): bool => $method->isConstructor());
70 70
         $constructor = reset($constructors);
71 71
 
72 72
         return $constructor === false ? [] : $constructor->parameters();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         return \count(array_filter(
83 83
             $this->attributes,
84
-            static fn (Attribute $attribute): bool => $attribute->hasVisibility($modifier)
84
+            static fn(Attribute $attribute): bool => $attribute->hasVisibility($modifier)
85 85
         ));
86 86
     }
87 87
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         return \count(array_filter(
96 96
             $this->attributes,
97
-            static fn (Attribute $attribute): bool =>
97
+            static fn(Attribute $attribute): bool =>
98 98
                 $attribute->hasTypeDeclaration() && $attribute->hasVisibility($modifier)
99 99
         ));
100 100
     }
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function isAbstract(): bool
154 154
     {
155
-        return \count(array_filter($this->methods(), static fn (Method $method): bool => $method->isAbstract())) > 0;
155
+        return \count(array_filter($this->methods(), static fn(Method $method): bool => $method->isAbstract())) > 0;
156 156
     }
157 157
 }
Please login to merge, or discard this patch.
src/Code/Attributes/AttributeDocBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     private function extractType(?string $comment): void
37 37
     {
38
-        if (preg_match(self::VAR_EXPRESSION, (string) $comment, $matches) === 1) {
38
+        if (preg_match(self::VAR_EXPRESSION, (string)$comment, $matches) === 1) {
39 39
             $this->attributeType = TypeDeclaration::from(trim($matches[1]));
40 40
             return;
41 41
         }
Please login to merge, or discard this patch.
src/Graphviz/ObjectHashIdentifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function identifier(): string
21 21
     {
22
-        return (string) $this->name();
22
+        return (string)$this->name();
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Parser/Code/RelationshipsResolvers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function addExternalDefinitionsTo(Codebase $codebase): void
28 28
     {
29
-        array_map(static fn (RelationshipsResolver $resolver) => $resolver->resolve($codebase), $this->resolvers);
29
+        array_map(static fn(RelationshipsResolver $resolver) => $resolver->resolve($codebase), $this->resolvers);
30 30
     }
31 31
 
32 32
     /** @param RelationshipsResolver[] $resolvers */
Please login to merge, or discard this patch.
src/Processors/ImageProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         $process = new Process([$this->name->command(), '-Tpng', '-o', $outputFile, $inputFile]);
74 74
         $process->run();
75
-        if (! $process->isSuccessful()) {
75
+        if (!$process->isSuccessful()) {
76 76
             throw ImageGenerationFailure::withOutput($process->getErrorOutput());
77 77
         }
78 78
     }
Please login to merge, or discard this patch.
src/Processors/GraphvizConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     /** @param mixed[] $configuration */
23 23
     public function __construct(array $configuration)
24 24
     {
25
-        $extractAssociations = (bool) ($configuration['associations'] ?? false);
25
+        $extractAssociations = (bool)($configuration['associations'] ?? false);
26 26
         $this->associationsBuilder = $extractAssociations ? new EdgesBuilder() : new NoAssociationsBuilder();
27 27
         $theme = new ThemeName($configuration['theme']);
28
-        $hideEmptyBlocks = (bool) ($configuration['hide-empty-blocks'] ?? false);
28
+        $hideEmptyBlocks = (bool)($configuration['hide-empty-blocks'] ?? false);
29 29
         $this->digraphStyle = $hideEmptyBlocks
30 30
             ? DigraphStyle::withoutEmptyBlocks($theme)
31 31
             : DigraphStyle::default($theme);
Please login to merge, or discard this patch.
src/Generators/DigraphGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             ->pipe($this->findCode)
53 53
             ->pipe($this->parseCode)
54 54
             ->pipe($this->createDigraph)
55
-            ->pipe(fn (OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath()));
55
+            ->pipe(fn(OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath()));
56 56
 
57 57
         $pipeline->process($input->codebaseDirectory());
58 58
     }
Please login to merge, or discard this patch.