Completed
Push — master ( d53a17...aa33b2 )
by Gabriel
02:05
created
src/Junty/Stream/StreamHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             return $this;
73 73
         }
74 74
 
75
-        $streams = array_map(function ($file) {
75
+        $streams = array_map(function($file) {
76 76
             return new Stream(fopen($file, 'r+'));
77 77
         }, $this->globs);
78 78
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             return $this;
101 101
         }
102 102
 
103
-        $streams = array_map(function ($file) {
103
+        $streams = array_map(function($file) {
104 104
             return new Stream(fopen($file, 'r+'));
105 105
         }, $this->globs);
106 106
 
@@ -192,20 +192,20 @@  discard block
 block discarded – undo
192 192
 
193 193
         foreach (
194 194
             glob(
195
-                dirname($pattern) . DIRECTORY_SEPARATOR . '*',
196
-                GLOB_ONLYDIR | GLOB_NOSORT
195
+                dirname($pattern).DIRECTORY_SEPARATOR.'*',
196
+                GLOB_ONLYDIR|GLOB_NOSORT
197 197
             )
198 198
             as $dir
199 199
         ) {
200 200
             $globs = array_merge(
201 201
                 $globs,
202 202
                 $this->recoursiveGlob(
203
-                    $dir . DIRECTORY_SEPARATOR . basename($pattern), $flags
203
+                    $dir.DIRECTORY_SEPARATOR.basename($pattern), $flags
204 204
                 )
205 205
             );
206 206
         }
207 207
 
208
-        $globs = array_filter($globs, function ($res) {
208
+        $globs = array_filter($globs, function($res) {
209 209
             return !is_dir($res);
210 210
         });
211 211
 
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
223 223
     private function ignoreFiles(array $files, $patterns)
224 224
     {
225 225
         if ($patterns !== null) {
226
-            $cbFilter = function () {return true;};
226
+            $cbFilter = function() {return true; };
227 227
 
228 228
             if (is_array($patterns) && count($patterns)) {
229
-                $cbFilter = function ($glob) use ($patterns) {
229
+                $cbFilter = function($glob) use ($patterns) {
230 230
                     foreach ($patterns as $pattern) {
231 231
                         if (preg_match($pattern, $glob)) {
232 232
                             return false;
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                     return true;
237 237
                 };
238 238
             } elseif (is_string($patterns)) {
239
-                $cbFilter = function ($glob) use ($patterns) {
239
+                $cbFilter = function($glob) use ($patterns) {
240 240
                     return !preg_match($patterns, $glob);
241 241
                 };
242 242
             }
Please login to merge, or discard this patch.