Passed
Push — variadic-params-visibility-con... ( ca0a66 )
by Luis
13:54
created
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 use Rector\Set\ValueObject\SetList;
12 12
 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
13 13
 
14
-return static function (ContainerConfigurator $containerConfigurator): void {
14
+return static function(ContainerConfigurator $containerConfigurator): void {
15 15
     // get parameters
16 16
     $parameters = $containerConfigurator->parameters();
17 17
 
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
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $edges = [];
59 59
         foreach ($variables as $parameter) {
60
-            if (! $this->needAssociation($class, $parameter)) {
60
+            if (!$this->needAssociation($class, $parameter)) {
61 61
                 continue;
62 62
             }
63 63
             $edges[] = $this->addAssociation($class, $parameter, $codebase);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     private function needAssociation(ClassDefinition $class, HasType $attribute): bool
76 76
     {
77
-        return $attribute->isAReference() && ! $this->isAssociationResolved($class, $attribute);
77
+        return $attribute->isAReference() && !$this->isAssociationResolved($class, $attribute);
78 78
     }
79 79
 
80 80
     private function isAssociationResolved(ClassDefinition $class, HasType $attribute): bool
Please login to merge, or discard this patch.
src/Graphviz/Digraph.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
 
37 37
     public function id(): string
38 38
     {
39
-        return sha1((string) mt_rand());
39
+        return sha1((string)mt_rand());
40 40
     }
41 41
 }
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
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     private function __construct(string $name)
29 29
     {
30
-        if (! \in_array($name, self::$validNames, true)) {
30
+        if (!\in_array($name, self::$validNames, true)) {
31 31
             throw UnknownTheme::named($name, self::$validNames);
32 32
         }
33 33
         $this->name = $name;
Please login to merge, or discard this patch.
src/Console/Commands/StatisticsInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,6 +69,6 @@
 block discarded – undo
69 69
     /** @param string[] $options */
70 70
     private function setRecursive(array $options): void
71 71
     {
72
-        $this->recursive = isset($options['recursive']) && (bool) $options['recursive'];
72
+        $this->recursive = isset($options['recursive']) && (bool)$options['recursive'];
73 73
     }
74 74
 }
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
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     private function __construct(?string $name)
29 29
     {
30
-        if (! \in_array($name, self::$names, true)) {
30
+        if (!\in_array($name, self::$names, true)) {
31 31
             throw UnknownImageProcessor::named($name, self::$names);
32 32
         }
33 33
         $this->name = $name;
Please login to merge, or discard this patch.
src/Processors/ImageProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $this->execute($dotFile, $imageFile);
47 47
 
48
-        $image = (string) file_get_contents($imageFile);
48
+        $image = (string)file_get_contents($imageFile);
49 49
 
50 50
         $this->fileSystem->remove($dotFile);
51 51
         $this->fileSystem->remove($imageFile);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $process = $this->process ?? new Process([$this->command(), '-Tpng', '-o', $outputFile, $inputFile]);
62 62
         $process->run();
63
-        if (! $process->isSuccessful()) {
63
+        if (!$process->isSuccessful()) {
64 64
             throw ImageGenerationFailure::withOutput($process->getErrorOutput());
65 65
         }
66 66
     }
Please login to merge, or discard this patch.
src/Configuration/DigraphConfiguration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
     /** @param mixed[] $input */
39 39
     public function __construct(array $input)
40 40
     {
41
-        $this->searchRecursively = (bool) $input['recursive'];
42
-        $this->extractAssociations = (bool) $input['associations'];
43
-        $this->hidePrivate = (bool) $input['hide-private'];
44
-        $this->hideProtected = (bool) $input['hide-protected'];
45
-        $this->hideAttributes = (bool) $input['hide-attributes'];
46
-        $this->hideMethods = (bool) $input['hide-methods'];
47
-        $this->hideEmptyBlocks = (bool) $input['hide-empty-blocks'];
41
+        $this->searchRecursively = (bool)$input['recursive'];
42
+        $this->extractAssociations = (bool)$input['associations'];
43
+        $this->hidePrivate = (bool)$input['hide-private'];
44
+        $this->hideProtected = (bool)$input['hide-protected'];
45
+        $this->hideAttributes = (bool)$input['hide-attributes'];
46
+        $this->hideMethods = (bool)$input['hide-methods'];
47
+        $this->hideEmptyBlocks = (bool)$input['hide-empty-blocks'];
48 48
         $this->setTheme($input['theme']);
49 49
     }
50 50
 
Please login to merge, or discard this patch.
src/Code/Codebase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,17 +22,17 @@
 block discarded – undo
22 22
 
23 23
     public function add(Definition $definition): void
24 24
     {
25
-        $this->definitions[(string) $definition->name()] = $definition;
25
+        $this->definitions[(string)$definition->name()] = $definition;
26 26
     }
27 27
 
28 28
     public function has(Name $name): bool
29 29
     {
30
-        return isset($this->definitions[(string) $name]);
30
+        return isset($this->definitions[(string)$name]);
31 31
     }
32 32
 
33 33
     public function get(Name $name): Definition
34 34
     {
35
-        return $this->definitions[(string) $name];
35
+        return $this->definitions[(string)$name];
36 36
     }
37 37
 
38 38
     /** @return Definition[] */
Please login to merge, or discard this patch.