@@ -26,13 +26,13 @@ discard block |
||
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 |
||
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 | } |