Completed
Pull Request — master (#2)
by
unknown
04:42
created
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function setupStubPath()
57 57
     {
58
-        $this->app->booted(function ($app) {
58
+        $this->app->booted(function($app) {
59 59
             Stub::setBasePath(__DIR__.'/Commands/stubs');
60 60
 
61 61
             if ($app['modules']->config('stubs.enabled') === true) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function registerNamespaces()
71 71
     {
72
-        $configPath = __DIR__ . '/../config/config.php';
72
+        $configPath = __DIR__.'/../config/config.php';
73 73
         $this->mergeConfigFrom($configPath, 'modules');
74 74
         $this->publishes([
75 75
             $configPath => config_path('modules.php')
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function registerServices()
99 99
     {
100
-        $this->app->singleton('modules', function ($app) {
100
+        $this->app->singleton('modules', function($app) {
101 101
             $path = $app['config']->get('modules.paths.modules');
102 102
 
103 103
             return new Repository($app, $path);
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function toArray()
26 26
     {
27
-        return array_map(function ($value) {
27
+        return array_map(function($value) {
28 28
             if ($value instanceof Module) {
29 29
                 return $value->json()->getAttributes();
30 30
             }
Please login to merge, or discard this patch.
src/Process/Installer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
         $process->setTimeout($this->timeout);
136 136
 
137 137
         if ($this->console instanceof Command) {
138
-            $process->run(function ($type, $line) {
138
+            $process->run(function($type, $line) {
139 139
                 $this->console->line($line);
140 140
             });
141 141
         }
Please login to merge, or discard this patch.
src/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
             return json_decode($this->getContents(), 1);
123 123
         }
124 124
 
125
-        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () {
125
+        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function() {
126 126
             return json_decode($this->getContents(), 1);
127 127
         });
128 128
     }
Please login to merge, or discard this patch.
src/Migrations/Migrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             return array();
61 61
         }
62 62
 
63
-        $files = array_map(function ($file) {
63
+        $files = array_map(function($file) {
64 64
             return str_replace('.php', '', basename($file));
65 65
 
66 66
         }, $files);
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
         $result = $query->orderBy('migration', 'desc')->get();
261 261
 
262
-        return collect($result)->map(function ($item) {
262
+        return collect($result)->map(function($item) {
263 263
             return (array) $item;
264 264
         })->lists('migration');
265 265
     }
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function getCached()
177 177
     {
178
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
178
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
179 179
             return $this->toCollection()->toArray();
180 180
         });
181 181
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $modules = $this->enabled();
265 265
 
266
-        uasort($modules, function (Module $a, Module $b) use ($direction) {
266
+        uasort($modules, function(Module $a, Module $b) use ($direction) {
267 267
             if ($a->order == $b->order) {
268 268
                 return 0;
269 269
             }
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $lowerName = $this->getLowerName();
159 159
 
160
-        $langPath = $this->getPath() . "/Resources/lang";
160
+        $langPath = $this->getPath()."/Resources/lang";
161 161
 
162 162
         if (is_dir($langPath)) {
163 163
             $this->loadTranslationsFrom($langPath, $lowerName);
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             $file = 'module.json';
176 176
         }
177 177
 
178
-        return new Json($this->getPath() . '/' . $file, $this->app['files']);
178
+        return new Json($this->getPath().'/'.$file, $this->app['files']);
179 179
     }
180 180
 
181 181
     /**
Please login to merge, or discard this patch.
src/Commands/GenerateEventCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
60 60
 
61 61
         return (new Stub('/event.stub', [
62
-            'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config("modules.paths.generator.event"),
62
+            'NAMESPACE' => $this->getClassNamespace($module)."\\".config("modules.paths.generator.event"),
63 63
             "CLASS" => $this->getClass(),
64
-            'DUMMYNAMESPACE' => $this->laravel->getNamespace() . "Events"
64
+            'DUMMYNAMESPACE' => $this->laravel->getNamespace()."Events"
65 65
         ]))->render();
66 66
     }
67 67
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $seederPath = $this->laravel['modules']->config('paths.generator.event');
73 73
 
74
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
74
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
75 75
 
76 76
     }
77 77
 
Please login to merge, or discard this patch.
src/Commands/GenerateListenerCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
60 60
 
61 61
         return (new Stub('/listener.stub', [
62
-            'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config("modules.paths.generator.listener"),
62
+            'NAMESPACE' => $this->getClassNamespace($module)."\\".config("modules.paths.generator.listener"),
63 63
             "EVENTNAME" => $this->getEventName($module),
64 64
             "EVENTSHORTENEDNAME" => $this->option('event'),
65 65
             "CLASS" => $this->getClass(),
66
-            'DUMMYNAMESPACE' => $this->laravel->getNamespace() . "Events"
66
+            'DUMMYNAMESPACE' => $this->laravel->getNamespace()."Events"
67 67
         ]))->render();
68 68
 
69 69
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $seederPath = $this->laravel['modules']->config('paths.generator.listener');
76 76
 
77
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
77
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
78 78
 
79 79
     }
80 80
 
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
 
98 98
     protected function getEventName(Module $module)
99 99
     {
100
-        return $this->getClassNamespace($module) . "\\" . config("modules.paths.generator.event") . "\\" . $this->option('event');
100
+        return $this->getClassNamespace($module)."\\".config("modules.paths.generator.event")."\\".$this->option('event');
101 101
     }
102 102
 }
Please login to merge, or discard this patch.