Completed
Push — master ( 832b11...ea8f5e )
by Carlos
01:19
created
src/Linter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function __construct($path, array $excludes = [], array $extensions = ['php'])
67 67
     {
68
-        $this->path = (array)$path;
68
+        $this->path = (array) $path;
69 69
         $this->excludes = $excludes;
70
-        $this->extensions = \array_map(function ($extension) {
70
+        $this->extensions = \array_map(function($extension) {
71 71
             return \sprintf('*.%s', \ltrim($extension, '.'));
72 72
         }, $extensions);
73 73
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $files = $this->getFiles();
87 87
         }
88 88
 
89
-        $processCallback = is_callable($this->processCallback) ? $this->processCallback : function () {
89
+        $processCallback = is_callable($this->processCallback) ? $this->processCallback : function() {
90 90
         };
91 91
 
92 92
         $errors = [];
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $finder->files()
184 184
             ->ignoreUnreadableDirs()
185 185
             ->ignoreVCS(true)
186
-            ->filter(function (SplFileInfo $file) {
186
+            ->filter(function(SplFileInfo $file) {
187 187
                 return $file->isReadable();
188 188
             })
189 189
             ->name($this->extensions)
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     protected function createLintProcess($filename)
254 254
     {
255 255
         $command = [
256
-            PHP_SAPI == 'cli' ? PHP_BINARY : PHP_BINDIR . '/php',
256
+            PHP_SAPI == 'cli' ? PHP_BINARY : PHP_BINDIR.'/php',
257 257
             '-d error_reporting=E_ALL',
258 258
             '-d display_errors=On',
259 259
             '-l', $filename,
Please login to merge, or discard this patch.