Completed
Push — master ( 360c05...4d396f )
by Nicolas
03:52
created
src/Commands/ProviderMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         /** @var Module $module */
76 76
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
77 77
 
78
-        return (new Stub('/' . $stub . '.stub', [
78
+        return (new Stub('/'.$stub.'.stub', [
79 79
             'NAMESPACE'         => $this->getClassNamespace($module),
80 80
             'CLASS'             => $this->getClass(),
81 81
             'LOWER_NAME'        => $module->getLowerName(),
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $generatorPath = GenerateConfigReader::read('provider');
102 102
 
103
-        return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php';
103
+        return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php';
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
src/Commands/SeedCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $name = $module->getName();
98 98
         $config = $module->get('migration');
99 99
         if (is_array($config) && array_key_exists('seeds', $config)) {
100
-            foreach ((array)$config['seeds'] as $class) {
100
+            foreach ((array) $config['seeds'] as $class) {
101 101
                 if (class_exists($class)) {
102 102
                     $seeders[] = $class;
103 103
                 }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     protected function dbSeed($className)
124 124
     {
125 125
         if ($option = $this->option('class')) {
126
-            $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\') . $option;
126
+            $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\').$option;
127 127
         } else {
128 128
             $params = ['--class' => $className];
129 129
         }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $seederPath = GenerateConfigReader::read('seeder');
155 155
         $seederPath = str_replace('/', '\\', $seederPath->getPath());
156 156
 
157
-        return $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder';
157
+        return $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder';
158 158
     }
159 159
 
160 160
     /**
Please login to merge, or discard this patch.
src/LumenModulesServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function setupStubPath()
32 32
     {
33
-        Stub::setBasePath(__DIR__ . '/Commands/stubs');
33
+        Stub::setBasePath(__DIR__.'/Commands/stubs');
34 34
 
35 35
         if (app('modules')->config('stubs.enabled') === true) {
36 36
             Stub::setBasePath(app('modules')->config('stubs.path'));
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     protected function registerServices()
44 44
     {
45
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
45
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
46 46
             $path = $app['config']->get('modules.paths.modules');
47 47
 
48 48
             return new Lumen\LumenFileRepository($app, $path);
Please login to merge, or discard this patch.
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function setupStubPath()
32 32
     {
33
-        Stub::setBasePath(__DIR__ . '/Commands/stubs');
33
+        Stub::setBasePath(__DIR__.'/Commands/stubs');
34 34
 
35
-        $this->app->booted(function ($app) {
35
+        $this->app->booted(function($app) {
36 36
             if ($app['modules']->config('stubs.enabled') === true) {
37 37
                 Stub::setBasePath($app['modules']->config('stubs.path'));
38 38
             }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function registerServices()
46 46
     {
47
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
47
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
48 48
             $path = $app['config']->get('modules.paths.modules');
49 49
 
50 50
             return new Laravel\LaravelFileRepository($app, $path);
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         $lowerName = $this->getLowerName();
192 192
 
193
-        $langPath = $this->getPath() . '/Resources/lang';
193
+        $langPath = $this->getPath().'/Resources/lang';
194 194
 
195 195
         if (is_dir($langPath)) {
196 196
             $this->loadTranslationsFrom($langPath, $lowerName);
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
             $file = 'module.json';
211 211
         }
212 212
 
213
-        return array_get($this->moduleJson, $file, function () use ($file) {
214
-            return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->app['files']);
213
+        return array_get($this->moduleJson, $file, function() use ($file) {
214
+            return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->app['files']);
215 215
         });
216 216
     }
217 217
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     protected function fireEvent($event)
266 266
     {
267
-        $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]);
267
+        $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
268 268
     }
269 269
     /**
270 270
      * Register the aliases from this module.
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     protected function registerFiles()
290 290
     {
291 291
         foreach ($this->get('files', []) as $file) {
292
-            include $this->path . '/' . $file;
292
+            include $this->path.'/'.$file;
293 293
         }
294 294
     }
295 295
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
      */
391 391
     public function getExtraPath(string $path) : string
392 392
     {
393
-        return $this->getPath() . '/' . $path;
393
+        return $this->getPath().'/'.$path;
394 394
     }
395 395
 
396 396
     /**
Please login to merge, or discard this patch.