Completed
Pull Request — master (#1163)
by
unknown
02:32
created
src/Laravel/LaravelDatabaseRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $module = $this->find($name);
105 105
         if ($module) {
106
-            return $module->getPath() . '/';
106
+            return $module->getPath().'/';
107 107
         }
108 108
 
109
-        return $this->getPath() . '/' . Str::studly($name) . '/';
109
+        return $this->getPath().'/'.Str::studly($name).'/';
110 110
     }
111 111
 
112 112
     /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function getCached()
158 158
     {
159
-        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function () {
159
+        return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function() {
160 160
             return $this->getModel()->all();
161 161
         });
162 162
     }
Please login to merge, or discard this patch.
src/Generators/DatabaseModuleGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $data = $this->getStubContents('json');
41 41
         $data = json_decode($data, true);
42 42
         $data['path'] = $this->module->getModulePath($this->getName());
43
-        if ($this->type ===  'plain') {
43
+        if ($this->type === 'plain') {
44 44
             $data['provider'] = [];
45 45
         }
46 46
         $this->module->getModel()->create($data);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function generateFiles()
71 71
     {
72 72
         foreach ($this->getFiles() as $stub => $file) {
73
-            $path = $this->module->getModulePath($this->getName()) . $file;
73
+            $path = $this->module->getModulePath($this->getName()).$file;
74 74
 
75 75
             if (!$this->filesystem->isDirectory($dir = dirname($path))) {
76 76
                 $this->filesystem->makeDirectory($dir, 0775, true);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         if (GenerateConfigReader::read('provider')->generate() === true) {
101 101
             Artisan::call('module:make-provider', [
102
-                'name'     => $this->getName() . 'ServiceProvider',
102
+                'name'     => $this->getName().'ServiceProvider',
103 103
                 'module'   => $this->getName(),
104 104
                 '--master' => true,
105 105
             ]);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         if (GenerateConfigReader::read('controller')->generate() === true) {
112 112
             $options = $this->type == 'api' ? ['--api' => true] : [];
113 113
             Artisan::call('module:make-controller', [
114
-                    'controller' => $this->getName() . 'Controller',
114
+                    'controller' => $this->getName().'Controller',
115 115
                     'module'     => $this->getName(),
116 116
                 ] + $options);
117 117
         }
Please login to merge, or discard this patch.
src/Providers/BootstrapServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             $this->registerMigrations();
19 19
 
20 20
             $this->publishes([
21
-                __DIR__ . '/../../database/migrations' => database_path('migrations'),
21
+                __DIR__.'/../../database/migrations' => database_path('migrations'),
22 22
             ], 'module-migrations');
23 23
         }
24 24
     }
@@ -33,6 +33,6 @@  discard block
 block discarded – undo
33 33
 
34 34
     private function registerMigrations()
35 35
     {
36
-        $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
36
+        $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
database/migrations/2020_12_29_025357_create_modules_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('modules', function (Blueprint $table) {
16
+        Schema::create('modules', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('path');
Please login to merge, or discard this patch.