@@ -44,7 +44,8 @@ |
||
44 | 44 | { |
45 | 45 | private $context = null; |
46 | 46 | |
47 | - public function __construct(?BaseConfig $config = null) { |
|
47 | + public function __construct(?BaseConfig $config = null) |
|
48 | + { |
|
48 | 49 | $this->context = new Context($config); |
49 | 50 | } |
50 | 51 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $path = realpath($path); |
54 | 54 | $path_len = strlen($path); |
55 | 55 | |
56 | - foreach (glob($path. \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
56 | + foreach (glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
57 | 57 | |
58 | 58 | if (is_dir($file)) { |
59 | 59 | $this->addVendor(substr($file, $path_len + 1), $file); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $path_len = strlen($path); |
78 | 78 | |
79 | - foreach (glob($path. \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
79 | + foreach (glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
80 | 80 | |
81 | 81 | if (is_dir($file)) { |
82 | 82 | $this->addModule($vendor_name, substr($file, $path_len + 1), $file); |