Test Setup Failed
Pull Request — master (#11)
by Benjamin
11:55 queued 02:07
created
src/Backend/Cli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/BladeLinterCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.