@@ -196,7 +196,7 @@ |
||
| 196 | 196 | { |
| 197 | 197 | return [] === $input->getArgument('paths') |
| 198 | 198 | ? $config->getDirPath() |
| 199 | - : (string)\getcwd(); |
|
| 199 | + : (string) \getcwd(); |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | /** |
@@ -96,7 +96,7 @@ |
||
| 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 | |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | ]; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - $output->write((string)\json_encode($data)); |
|
| 33 | + $output->write((string) \json_encode($data)); |
|
| 34 | 34 | } |
| 35 | 35 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -113,7 +113,7 @@ |
||
| 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 | |