Passed
Push — union-types ( b56600 )
by Luis
14:03
created
src/Generators/ClassDiagramConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /** @param mixed[] $configuration */
34 34
     public function __construct(array $configuration)
35 35
     {
36
-        $recursive = (bool) ($configuration['recursive'] ?? false);
36
+        $recursive = (bool)($configuration['recursive'] ?? false);
37 37
         $this->codeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive();
38 38
         $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration));
39 39
         $this->graphvizProcessor = GraphvizProcessor::fromConfiguration(new GraphvizConfiguration($configuration));
Please login to merge, or discard this patch.
src/Generators/DigraphConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /** @param mixed[] $configuration */
30 30
     public function __construct(array $configuration)
31 31
     {
32
-        $recursive = (bool) ($configuration['recursive'] ?? false);
32
+        $recursive = (bool)($configuration['recursive'] ?? false);
33 33
         $this->sourceCodeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive();
34 34
         $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration));
35 35
         $this->graphvizProcessor = GraphvizProcessor::fromConfiguration(new GraphvizConfiguration($configuration));
Please login to merge, or discard this patch.
src/Generators/StatisticsGeneratorConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /** @param mixed[] $configuration */
30 30
     public function __construct(array $configuration)
31 31
     {
32
-        $recursive = (bool) ($configuration['recursive'] ?? false);
32
+        $recursive = (bool)($configuration['recursive'] ?? false);
33 33
         $this->codeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive();
34 34
         $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration));
35 35
         $this->statisticsProcessor = new StatisticsProcessor(new TemplateEngine());
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/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[] $config */
23 23
     public function __construct(array $config)
24 24
     {
25
-        $this->extractAssociations = (bool) ($config['associations'] ?? false);
26
-        $this->hidePrivate = (bool) ($config['hide-private'] ?? false);
27
-        $this->hideProtected = (bool) ($config['hide-protected'] ?? false);
28
-        $this->hideAttributes = (bool) ($config['hide-attributes'] ?? false);
29
-        $this->hideMethods = (bool) ($config['hide-methods'] ?? false);
25
+        $this->extractAssociations = (bool)($config['associations'] ?? false);
26
+        $this->hidePrivate = (bool)($config['hide-private'] ?? false);
27
+        $this->hideProtected = (bool)($config['hide-protected'] ?? false);
28
+        $this->hideAttributes = (bool)($config['hide-attributes'] ?? false);
29
+        $this->hideMethods = (bool)($config['hide-methods'] ?? false);
30 30
     }
31 31
 
32 32
     public function extractAssociations(): bool
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/ImageProcessorName.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::$names, true)) {
19
+        if (!\in_array($name, self::$names, true)) {
20 20
             throw UnknownImageProcessor::named($name, self::$names);
21 21
         }
22 22
         $this->name = $name;
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.