Passed
Push — master ( 0701c6...1a3583 )
by Luis
41s queued 12s
created
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.
src/Code/Attributes/AttributeDocBlock.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
     public function extractType(): TypeDeclaration
27 27
     {
28 28
         $type = null;
29
-        if (preg_match(self::$varExpression, (string) $this->comment, $matches) === 1) {
29
+        if (preg_match(self::$varExpression, (string)$this->comment, $matches) === 1) {
30 30
             $type = trim($matches[1]);
31 31
         }
32 32
         return TypeDeclaration::from($type);
Please login to merge, or discard this patch.
src/Code/Methods/MethodDocBlock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function returnType(): TypeDeclaration
33 33
     {
34 34
         $type = null;
35
-        if (preg_match(self::$returnExpression, (string) $this->comment, $matches) === 1) {
35
+        if (preg_match(self::$returnExpression, (string)$this->comment, $matches) === 1) {
36 36
             $type = trim($matches[1]);
37 37
         }
38 38
         return TypeDeclaration::from($type);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     private function setParameters(): void
53 53
     {
54
-        if (preg_match_all(self::$parameterExpression, (string) $this->comment, $matches) < 1) {
54
+        if (preg_match_all(self::$parameterExpression, (string)$this->comment, $matches) < 1) {
55 55
             return;
56 56
         }
57 57
         foreach ($matches[0] as $typeHint) {
Please login to merge, or discard this patch.
src/Code/Variables/WithTypeDeclaration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /** @see HasType::isAReference() for more details */
16 16
     public function isAReference(): bool
17 17
     {
18
-        return $this->hasTypeDeclaration() && ! $this->type->isBuiltIn();
18
+        return $this->hasTypeDeclaration() && !$this->type->isBuiltIn();
19 19
     }
20 20
 
21 21
     /** @see HasType::hasTypeDeclaration() for more details */
Please login to merge, or discard this patch.
src/Code/Variables/TypeDeclaration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function isBuiltIn(): bool
60 60
     {
61
-        $type = (string) $this->name;
61
+        $type = (string)$this->name;
62 62
         if ($this->isArray()) {
63 63
             $type = $this->removeArraySuffix();
64 64
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function isArray(): bool
69 69
     {
70
-        return strpos((string) $this->name, '[]') === \strlen((string) $this->name) - 2;
70
+        return strpos((string)$this->name, '[]') === \strlen((string)$this->name) - 2;
71 71
     }
72 72
 
73 73
     public function isNullable(): bool
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function removeArraySuffix(): string
79 79
     {
80
-        return substr((string) $this->name, 0, -2);
80
+        return substr((string)$this->name, 0, -2);
81 81
     }
82 82
 
83 83
     public function __toString()
Please login to merge, or discard this patch.
src/Parser/CodebaseDirectory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function absolutePath(): string
23 23
     {
24
-        return (string) $this->directory->getRealPath();
24
+        return (string)$this->directory->getRealPath();
25 25
     }
26 26
 
27 27
     private function __construct(string $path)
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     private function setDirectory(SplFileInfo $path): void
33 33
     {
34
-        if (! $path->isDir()) {
34
+        if (!$path->isDir()) {
35 35
             throw InvalidDirectory::notFoundAt($path);
36 36
         }
37 37
         $this->directory = $path;
Please login to merge, or discard this patch.