Completed
Pull Request — master (#1792)
by Solomon
10:00
created
src/Commands/Database/MigrateResetCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         $database = $this->option('database');
34 34
 
35
-        if (! empty($database)) {
35
+        if (!empty($database)) {
36 36
             $migrator->setDatabase($database);
37 37
         }
38 38
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->components->warn("Nothing to rollback on module <fg=cyan;options=bold>{$module->getName()}</>");
50 50
     }
51 51
 
52
-    public function getInfo(): string|null
52
+    public function getInfo(): string | null
53 53
     {
54 54
         return null;
55 55
     }
Please login to merge, or discard this patch.
src/Commands/Make/ModelMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $string = '';
59 59
         foreach ($pieces as $i => $piece) {
60 60
             if ($i + 1 < count($pieces)) {
61
-                $string .= strtolower($piece) . '_';
61
+                $string .= strtolower($piece).'_';
62 62
             } else {
63 63
                 $string .= Str::plural(strtolower($piece));
64 64
             }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     private function handleOptionalMigrationOption()
100 100
     {
101 101
         if ($this->option('migration') === true) {
102
-            $migrationName = 'create_' . $this->createMigrationName() . '_table';
102
+            $migrationName = 'create_'.$this->createMigrationName().'_table';
103 103
             $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]);
104 104
         }
105 105
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         $modelPath = GenerateConfigReader::read('model');
134 134
 
135
-        return $path . $modelPath->getPath() . '/' . $this->getModelName() . '.php';
135
+        return $path.$modelPath->getPath().'/'.$this->getModelName().'.php';
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.
src/Commands/Make/ControllerMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         $controllerPath = GenerateConfigReader::read('controller');
46 46
 
47
-        return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php';
47
+        return $path.$controllerPath->getPath().'/'.$this->getControllerName().'.php';
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/Commands/Publish/PublishConfigurationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         ]);
31 31
     }
32 32
 
33
-    public function getInfo(): string|null
33
+    public function getInfo(): string | null
34 34
     {
35 35
         return 'Publishing module config files ...';
36 36
     }
Please login to merge, or discard this patch.
src/Commands/Publish/PublishMigrationCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $module = $this->getModuleModel($name);
28 28
 
29
-        $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
29
+        $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
30 30
             with(new MigrationPublisher(new Migrator($module, $this->getLaravel())))
31 31
                 ->setRepository($this->laravel['modules'])
32 32
                 ->setConsole($this)
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         });
35 35
     }
36 36
 
37
-    public function getInfo(): string|null
37
+    public function getInfo(): string | null
38 38
     {
39 39
         return 'Publishing module migrations ...';
40 40
     }
Please login to merge, or discard this patch.
src/Commands/Publish/PublishTranslationCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
             with(new LangPublisher($module))
29 29
                 ->setRepository($this->laravel['modules'])
30 30
                 ->setConsole($this)
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         });
33 33
     }
34 34
 
35
-    public function getInfo(): string|null
35
+    public function getInfo(): string | null
36 36
     {
37 37
         return 'Publishing module translations ...';
38 38
     }
Please login to merge, or discard this patch.
src/Commands/Publish/PublishCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
             with(new AssetPublisher($module))
29 29
                 ->setRepository($this->laravel['modules'])
30 30
                 ->setConsole($this)
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     }
35 35
 
36
-    public function getInfo(): string|null
36
+    public function getInfo(): string | null
37 37
     {
38 38
         return 'Publishing module asset files ...';
39 39
     }
Please login to merge, or discard this patch.
src/Commands/Make/ViewMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $path = $this->laravel['modules']->getModulePath($this->getModuleName());
36 36
         $factoryPath = GenerateConfigReader::read('views');
37 37
 
38
-        return $path . $factoryPath->getPath() . '/' . $this->getFileName();
38
+        return $path.$factoryPath->getPath().'/'.$this->getFileName();
39 39
     }
40 40
 
41 41
     /**
@@ -43,6 +43,6 @@  discard block
 block discarded – undo
43 43
      */
44 44
     private function getFileName(): string
45 45
     {
46
-        return Str::lower($this->argument('name')) . '.blade.php';
46
+        return Str::lower($this->argument('name')).'.blade.php';
47 47
     }
48 48
 }
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
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $lowerName = $this->getLowerName();
184 184
 
185
-        $langPath = $this->getPath() . '/Resources/lang';
185
+        $langPath = $this->getPath().'/Resources/lang';
186 186
 
187 187
         if (is_dir($langPath)) {
188 188
             $this->loadTranslationsFrom($langPath, $lowerName);
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
             $file = 'module.json';
199 199
         }
200 200
 
201
-        return Arr::get($this->moduleJson, $file, function () use ($file) {
202
-            return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files);
201
+        return Arr::get($this->moduleJson, $file, function() use ($file) {
202
+            return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files);
203 203
         });
204 204
     }
205 205
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     protected function fireEvent(string $event): void
242 242
     {
243
-        $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]);
243
+        $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
244 244
     }
245 245
 
246 246
     /**
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     protected function registerFiles(): void
265 265
     {
266 266
         foreach ($this->get('files', []) as $file) {
267
-            include $this->path . '/' . $file;
267
+            include $this->path.'/'.$file;
268 268
         }
269 269
     }
270 270
 
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      */
350 350
     public function getExtraPath(string $path): string
351 351
     {
352
-        return $this->getPath() . '/' . $path;
352
+        return $this->getPath().'/'.$path;
353 353
     }
354 354
 
355 355
     /**
Please login to merge, or discard this patch.