Completed
Push — master ( 65003a...6f5491 )
by Nicolas
03:55
created
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function setupStubPath()
33 33
     {
34
-        Stub::setBasePath(__DIR__ . '/Commands/stubs');
34
+        Stub::setBasePath(__DIR__.'/Commands/stubs');
35 35
 
36
-        $this->app->booted(function ($app) {
36
+        $this->app->booted(function($app) {
37 37
             /** @var RepositoryInterface $moduleRepository */
38 38
             $moduleRepository = $app[RepositoryInterface::class];
39 39
             if ($moduleRepository->config('stubs.enabled') === true) {
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function registerServices()
49 49
     {
50
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
50
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
51 51
             $path = $app['config']->get('modules.paths.modules');
52 52
 
53 53
             return new Laravel\LaravelFileRepository($app, $path);
54 54
         });
55
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
55
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
56 56
             $activator = $app['config']->get('modules.activator');
57
-            $class = $app['config']->get('modules.activators.' . $activator)['class'];
57
+            $class = $app['config']->get('modules.activators.'.$activator)['class'];
58 58
 
59 59
             return new $class($app);
60 60
         });
Please login to merge, or discard this patch.
src/LumenModulesServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function setupStubPath()
33 33
     {
34
-        Stub::setBasePath(__DIR__ . '/Commands/stubs');
34
+        Stub::setBasePath(__DIR__.'/Commands/stubs');
35 35
 
36 36
         if (app('modules')->config('stubs.enabled') === true) {
37 37
             Stub::setBasePath(app('modules')->config('stubs.path'));
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
      */
44 44
     protected function registerServices()
45 45
     {
46
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
46
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
47 47
             $path = $app['config']->get('modules.paths.modules');
48 48
 
49 49
             return new Lumen\LumenFileRepository($app, $path);
50 50
         });
51
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
51
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
52 52
             $activator = $app['config']->get('modules.activator');
53
-            $class = $app['config']->get('modules.activators.' . $activator)['class'];
53
+            $class = $app['config']->get('modules.activators.'.$activator)['class'];
54 54
 
55 55
             return new $class($app);
56 56
         });
Please login to merge, or discard this patch.
src/Commands/ListenerMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $eventPath = GenerateConfigReader::read('event');
79 79
 
80
-        return $this->getClassNamespace($module) . "\\" . $eventPath->getPath() . "\\" . $this->option('event');
80
+        return $this->getClassNamespace($module)."\\".$eventPath->getPath()."\\".$this->option('event');
81 81
     }
82 82
 
83 83
     protected function getDestinationFilePath()
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $listenerPath = GenerateConfigReader::read('listener');
88 88
 
89
-        return $path . $listenerPath->getPath() . '/' . $this->getFileName() . '.php';
89
+        return $path.$listenerPath->getPath().'/'.$this->getFileName().'.php';
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.
src/Activators/FileActivator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             return $this->readJson();
80 80
         }
81 81
 
82
-        return $this->cache->remember($this->cacheKey, $this->cacheLifetime, function () {
82
+        return $this->cache->remember($this->cacheKey, $this->cacheLifetime, function() {
83 83
             return $this->readJson();
84 84
         });
85 85
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     private function config(string $key, $default = null)
103 103
     {
104
-        return $this->config->get('modules.activators.file.' . $key, $default);
104
+        return $this->config->get('modules.activators.file.'.$key, $default);
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
src/Laravel/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function getCachedServicesPath(): string
17 17
     {
18
-        return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->getCachedServicesPath());
18
+        return Str::replaceLast('services.php', $this->getSnakeName().'_module.php', $this->app->getCachedServicesPath());
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
src/Lumen/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function getCachedServicesPath(): string
14 14
     {
15
-        return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->basePath('storage/app/') . 'services.php');
15
+        return Str::replaceLast('services.php', $this->getSnakeName().'_module.php', $this->app->basePath('storage/app/').'services.php');
16 16
     }
17 17
 
18 18
     /**
Please login to merge, or discard this patch.