Passed
Pull Request — master (#332)
by Fabien
01:55
created
src/Command/RunCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
     {
197 197
         return [] === $input->getArgument('paths')
198 198
             ? $config->getDirPath()
199
-            : (string)\getcwd();
199
+            : (string) \getcwd();
200 200
     }
201 201
 
202 202
     /**
Please login to merge, or discard this patch.
src/Configuration/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     public function getDirPath(): string
97 97
     {
98 98
         return null === $this->path
99
-            ? (string)\getcwd()
99
+            ? (string) \getcwd()
100 100
             : \dirname($this->path);
101 101
     }
102 102
 
Please login to merge, or discard this patch.
src/Result/Render/JsonResultsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
             ];
31 31
         }
32 32
 
33
-        $output->write((string)\json_encode($data));
33
+        $output->write((string) \json_encode($data));
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Process/CacheProcessFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $data = [];
114 114
 
115 115
         foreach ($this->cache as $path => $values) {
116
-            if (!(bool)$values[3]) {
116
+            if (!(bool) $values[3]) {
117 117
                 continue;
118 118
             }
119 119
 
Please login to merge, or discard this patch.
src/File/FileFinder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         if (\is_file($path)) {
80 80
             $file = new SplFileInfo($path);
81 81
 
82
-            yield new File((string)$file->getRealPath(), $this->getDisplayPath($file));
82
+            yield new File((string) $file->getRealPath(), $this->getDisplayPath($file));
83 83
 
84 84
             return;
85 85
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         foreach ($this->findPhpFiles($path) as $file) {
93
-            yield new File((string)$file->getRealPath(), $this->getDisplayPath($file));
93
+            yield new File((string) $file->getRealPath(), $this->getDisplayPath($file));
94 94
         }
95 95
     }
96 96
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     {
149 149
         foreach ($this->filters as $regex) {
150 150
             $realPath = $file->getRealPath();
151
-            if (false === $realPath || (bool)\preg_match("#{$regex}#", $realPath)) {
151
+            if (false === $realPath || (bool) \preg_match("#{$regex}#", $realPath)) {
152 152
                 return true;
153 153
             }
154 154
         }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     private function patternToRegex(string $filePattern): string
165 165
     {
166
-        $regex = (string)\preg_replace("#(.*)\*([\w.]*)$#", "$1.+$2$", $filePattern);
166
+        $regex = (string) \preg_replace("#(.*)\*([\w.]*)$#", "$1.+$2$", $filePattern);
167 167
 
168 168
         if ('\\' === \DIRECTORY_SEPARATOR) {
169 169
             $regex = \str_replace('/', '\\\\', $regex);
Please login to merge, or discard this patch.