Completed
Push — master ( 47cd69...3b5440 )
by Thomas
02:46
created
src/Discovery/FindByNamespace.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function __construct($path = null)
28 28
     {
29
-        $this->path = ($path === null)?__DIR__:$path;
29
+        $this->path = ($path === null) ? __DIR__ : $path;
30 30
         $this->data = [];
31 31
     }
32 32
 
33 33
     public function find($needle = null, $rebuild = FALSE)
34 34
     {
35
-        if($rebuild === TRUE || empty($this->data))
35
+        if ($rebuild === TRUE || empty($this->data))
36 36
         {
37 37
             $allFiles = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->path));
38 38
             $phpFiles = new RegexIterator($allFiles, '/\.php$/');
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             }
60 60
         }
61 61
 
62
-        return array_values(array_filter($this->data, function ($var) use ($needle) {
62
+        return array_values(array_filter($this->data, function($var) use ($needle) {
63 63
             if (strpos($var, $needle) !== false) {
64 64
                 return TRUE;
65 65
             }
Please login to merge, or discard this patch.