@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $message = ''; |
21 | 21 | $result = $this->lint($code, $output, $message); |
22 | 22 | |
23 | - if (! $result) { |
|
23 | + if (!$result) { |
|
24 | 24 | $line = null; |
25 | 25 | if (false !== preg_match(self::REGEX, trim($message), $matches)) { |
26 | 26 | $line = isset($matches[1]) ? (int) $matches[1] : null; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | // open linter process (php -l) |
56 | 56 | $process = proc_open('php -d display_errors=stderr -l', $descriptors, $pipes); |
57 | 57 | |
58 | - if (! is_resource($process)) { |
|
58 | + if (!is_resource($process)) { |
|
59 | 59 | throw new \RuntimeException("unable to open process 'php -l'"); |
60 | 60 | } |
61 | 61 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | if ($codeclimate !== null) { |
49 | 49 | fwrite($codeclimate, json_encode( |
50 | - array_map(function (ErrorRecord $error) { |
|
50 | + array_map(function(ErrorRecord $error) { |
|
51 | 51 | return [ |
52 | 52 | 'type' => 'issue', |
53 | 53 | 'check_name' => 'Laravel Blade Lint', |
@@ -125,10 +125,10 @@ discard block |
||
125 | 125 | */ |
126 | 126 | private function prepareBackends(): array |
127 | 127 | { |
128 | - return array_map(function ($backendSpec) { |
|
128 | + return array_map(function($backendSpec) { |
|
129 | 129 | switch ($backendSpec) { |
130 | 130 | default: // case 'auto': |
131 | - $fast = (bool)$this->option('fast'); |
|
131 | + $fast = (bool) $this->option('fast'); |
|
132 | 132 | if ($fast && extension_loaded('ast')) { |
133 | 133 | goto ext_ast; |
134 | 134 | } elseif ($fast && class_exists(ParserFactory::class)) { |