Completed
Pull Request — master (#1163)
by
unknown
09:19
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
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function generateFiles()
78 78
     {
79 79
         foreach ($this->getFiles() as $stub => $file) {
80
-            $path = $this->module->getModulePath($this->getName()) . $file;
80
+            $path = $this->module->getModulePath($this->getName()).$file;
81 81
 
82 82
             if (!$this->filesystem->isDirectory($dir = dirname($path))) {
83 83
                 $this->filesystem->makeDirectory($dir, 0775, true);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         if (GenerateConfigReader::read('provider')->generate() === true) {
110 110
             Artisan::call('module:make-provider', [
111
-                'name'     => $moduleName . 'ServiceProvider',
111
+                'name'     => $moduleName.'ServiceProvider',
112 112
                 'module'   => $moduleName,
113 113
                 '--master' => true,
114 114
             ]);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         if (GenerateConfigReader::read('controller')->generate() === true) {
121 121
             $options = $this->type == 'api' ? ['--api' => true] : [];
122 122
             Artisan::call('module:make-controller', [
123
-                    'controller' => $moduleName . 'Controller',
123
+                    'controller' => $moduleName.'Controller',
124 124
                     'module'     => $moduleName,
125 125
                 ] + $options);
126 126
         }
Please login to merge, or discard this patch.