Completed
Pull Request — master (#1163)
by
unknown
01:36
created
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.
src/Generators/DatabaseModuleGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function generateFiles()
77 77
     {
78 78
         foreach ($this->getFiles() as $stub => $file) {
79
-            $path = $this->module->getModulePath($this->getName()) . $file;
79
+            $path = $this->module->getModulePath($this->getName()).$file;
80 80
 
81 81
             if (!$this->filesystem->isDirectory($dir = dirname($path))) {
82 82
                 $this->filesystem->makeDirectory($dir, 0775, true);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         if (GenerateConfigReader::read('provider')->generate() === true) {
107 107
             Artisan::call('module:make-provider', [
108
-                'name'     => $this->getName() . 'ServiceProvider',
108
+                'name'     => $this->getName().'ServiceProvider',
109 109
                 'module'   => $this->getName(),
110 110
                 '--master' => true,
111 111
             ]);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         if (GenerateConfigReader::read('controller')->generate() === true) {
118 118
             $options = $this->type == 'api' ? ['--api' => true] : [];
119 119
             Artisan::call('module:make-controller', [
120
-                    'controller' => $this->getName() . 'Controller',
120
+                    'controller' => $this->getName().'Controller',
121 121
                     'module'     => $this->getName(),
122 122
                 ] + $options);
123 123
         }
Please login to merge, or discard this patch.