Passed
Push — master ( 95a1a9...664995 )
by Neil
02:00
created
src/ModuleServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $disabledModules = collect(config('modules.disabled'));
111 111
         $directories = collect(scandir($directory))
112
-                        ->reject(function ($folder) use ($directory, $disabledModules) {
112
+                        ->reject(function($folder) use ($directory, $disabledModules) {
113 113
                             return !is_dir($directory . DIRECTORY_SEPARATOR . $folder)
114 114
                                 || $folder == "."
115 115
                                 || $folder == ".."
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $modules = $this->getEnabledModules();
138 138
 
139 139
         // Load each module
140
-        $modules->each(function ($module) {
140
+        $modules->each(function($module) {
141 141
 
142 142
             $this->loadModuleProviders($module);
143 143
 
@@ -235,11 +235,11 @@  discard block
 block discarded – undo
235 235
      */
236 236
     protected function bindGetModuleNameClosureToIOC()
237 237
     {
238
-        $this->app->bind('Module::getNameLowerCase', function ($app, $parameters) {
238
+        $this->app->bind('Module::getNameLowerCase', function($app, $parameters) {
239 239
             return strtolower(substr($parameters['path'], strrpos($parameters['path'], "/") + 1));
240 240
         });
241 241
 
242
-        $this->app->bind('Module::getName', function ($app, $parameters) {
242
+        $this->app->bind('Module::getName', function($app, $parameters) {
243 243
             return substr($parameters['path'], strrpos($parameters['path'], "/") + 1);
244 244
         });
245 245
     }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     protected function bindGetControllerPathClosureToIOC()
251 251
     {
252
-        $this->app->bind('Module::getControllerPath', function ($app, $parameters) {
252
+        $this->app->bind('Module::getControllerPath', function($app, $parameters) {
253 253
             return $this->app->getNamespace() . 'App\Modules\\' . substr($parameters['path'], strrpos($parameters['path'], "/") + 1) . '\Controllers';
254 254
         });
255 255
     }
Please login to merge, or discard this patch.