Completed
Pull Request — master (#1163)
by
unknown
03:11 queued 13s
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function generateFiles()
81 81
     {
82 82
         foreach ($this->getFiles() as $stub => $file) {
83
-            $path = $this->module->getModulePath($this->getName()) . $file;
83
+            $path = $this->module->getModulePath($this->getName()).$file;
84 84
 
85 85
             if (!$this->filesystem->isDirectory($dir = dirname($path))) {
86 86
                 $this->filesystem->makeDirectory($dir, 0775, true);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         if (GenerateConfigReader::read('provider')->generate() === true) {
113 113
             Artisan::call('module:make-provider', [
114
-                'name'     => $moduleName . 'ServiceProvider',
114
+                'name'     => $moduleName.'ServiceProvider',
115 115
                 'module'   => $moduleName,
116 116
                 '--master' => true,
117 117
             ]);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         if (GenerateConfigReader::read('controller')->generate() === true) {
124 124
             $options = $this->type == 'api' ? ['--api' => true] : [];
125 125
             Artisan::call('module:make-controller', [
126
-                    'controller' => $moduleName . 'Controller',
126
+                    'controller' => $moduleName.'Controller',
127 127
                     'module'     => $moduleName,
128 128
                 ] + $options);
129 129
         }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     private function generateModuleJsonFile()
136 136
     {
137
-        $path = $this->module->getModulePath($this->getName()) . 'module.json';
137
+        $path = $this->module->getModulePath($this->getName()).'module.json';
138 138
 
139 139
         if (!$this->filesystem->isDirectory($dir = dirname($path))) {
140 140
             $this->filesystem->makeDirectory($dir, 0775, true);
Please login to merge, or discard this patch.