Completed
Pull Request — master (#1225)
by
unknown
01:49
created
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $this->setupStubPath();
27 27
         $this->registerProviders();
28 28
 
29
-        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'modules');
29
+        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'modules');
30 30
     }
31 31
 
32 32
     /**
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function setupStubPath()
36 36
     {
37
-        $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__ . '/Commands/stubs';
37
+        $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__.'/Commands/stubs';
38 38
         Stub::setBasePath($path);
39 39
 
40
-        $this->app->booted(function ($app) {
40
+        $this->app->booted(function($app) {
41 41
             /** @var RepositoryInterface $moduleRepository */
42 42
             $moduleRepository = $app[RepositoryInterface::class];
43 43
             if ($moduleRepository->config('stubs.enabled') === true) {
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function registerServices()
53 53
     {
54
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
54
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
55 55
             $path = $app['config']->get('modules.paths.modules');
56 56
 
57 57
             return new Laravel\LaravelFileRepository($app, $path);
58 58
         });
59
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
59
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
60 60
             $activator = $app['config']->get('modules.activator');
61
-            $class = $app['config']->get('modules.activators.' . $activator)['class'];
61
+            $class = $app['config']->get('modules.activators.'.$activator)['class'];
62 62
 
63 63
             if ($class === null) {
64 64
                 throw InvalidActivatorClass::missingConfig();
Please login to merge, or discard this patch.
src/ModulesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     protected function registerNamespaces()
38 38
     {
39
-        $configPath = __DIR__ . '/../config/config.php';
39
+        $configPath = __DIR__.'/../config/config.php';
40 40
 
41 41
         $this->publishes([
42 42
             $configPath => config_path('modules.php'),
Please login to merge, or discard this patch.