Passed
Pull Request — master (#9)
by Luis
13:24
created
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.
src/Generators/ClassDiagramGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             ->pipe($this->parseCode)
51 51
             ->pipe($this->createDigraph)
52 52
             ->pipe($this->createClassDiagram)
53
-            ->pipe(fn (OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath()));
53
+            ->pipe(fn(OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath()));
54 54
 
55 55
         $pipeline->process($input->codebaseDirectory());
56 56
     }
Please login to merge, or discard this patch.
src/Generators/StatisticsGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             ->pipe($this->findCode)
48 48
             ->pipe($this->parseCode)
49 49
             ->pipe($this->calculateStatistics)
50
-            ->pipe(fn (OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath()));
50
+            ->pipe(fn(OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath()));
51 51
 
52 52
         $pipeline->process($input->codebaseDirectory());
53 53
     }
Please login to merge, or discard this patch.
src/Graphviz/Styles/ThemeName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function __construct(string $name)
18 18
     {
19
-        if (! \in_array($name, self::VALID_NAMES, true)) {
19
+        if (!\in_array($name, self::VALID_NAMES, true)) {
20 20
             throw UnknownTheme::named($name, self::VALID_NAMES);
21 21
         }
22 22
         $this->name = $name;
Please login to merge, or discard this patch.
src/Parser/CodeParserConfiguration.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
     /** @param mixed[] $options */
23 23
     public function __construct(array $options)
24 24
     {
25
-        $this->extractAssociations = (bool) ($options['associations'] ?? false);
26
-        $this->hidePrivate = (bool) ($options['hide-private'] ?? false);
27
-        $this->hideProtected = (bool) ($options['hide-protected'] ?? false);
28
-        $this->hideAttributes = (bool) ($options['hide-attributes'] ?? false);
29
-        $this->hideMethods = (bool) ($options['hide-methods'] ?? false);
25
+        $this->extractAssociations = (bool)($options['associations'] ?? false);
26
+        $this->hidePrivate = (bool)($options['hide-private'] ?? false);
27
+        $this->hideProtected = (bool)($options['hide-protected'] ?? false);
28
+        $this->hideAttributes = (bool)($options['hide-attributes'] ?? false);
29
+        $this->hideMethods = (bool)($options['hide-methods'] ?? false);
30 30
     }
31 31
 
32 32
     public function extractAssociations(): bool
Please login to merge, or discard this patch.