Completed
Pull Request — master (#1798)
by Solomon
09:37
created
src/Commands/Make/ComponentViewMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $path = $this->laravel['modules']->getModulePath($this->getModuleName());
64 64
         $factoryPath = GenerateConfigReader::read('component-view');
65 65
 
66
-        return $path . $factoryPath->getPath() . '/' . $this->getFileName();
66
+        return $path.$factoryPath->getPath().'/'.$this->getFileName();
67 67
     }
68 68
 
69 69
     /**
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
      */
72 72
     private function getFileName()
73 73
     {
74
-        return Str::lower($this->argument('name')) . '.blade.php';
74
+        return Str::lower($this->argument('name')).'.blade.php';
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
src/Commands/Make/CommandMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
         $commandPath = GenerateConfigReader::read('command');
102 102
 
103
-        return $path . $commandPath->getPath() . '/' . $this->getFileName() . '.php';
103
+        return $path.$commandPath->getPath().'/'.$this->getFileName().'.php';
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
src/Commands/Make/NotificationMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         $notificationPath = GenerateConfigReader::read('notifications');
63 63
 
64
-        return $path . $notificationPath->getPath() . '/' . $this->getFileName() . '.php';
64
+        return $path.$notificationPath->getPath().'/'.$this->getFileName().'.php';
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
src/Commands/Make/EventMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
 
40 40
     public function getDestinationFilePath()
41 41
     {
42
-        $path       = $this->laravel['modules']->getModulePath($this->getModuleName());
42
+        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
43 43
 
44 44
         $eventPath = GenerateConfigReader::read('event');
45 45
 
46
-        return $path . $eventPath->getPath() . '/' . $this->getFileName() . '.php';
46
+        return $path.$eventPath->getPath().'/'.$this->getFileName().'.php';
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
src/Commands/Make/TestMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             $testPath = GenerateConfigReader::read('test-unit');
81 81
         }
82 82
 
83
-        return $path . $testPath->getPath() . '/' . $this->getFileName() . '.php';
83
+        return $path.$testPath->getPath().'/'.$this->getFileName().'.php';
84 84
     }
85 85
 
86 86
     /**
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
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $lowerName = $this->getLowerName();
225 225
 
226
-        $langPath = $this->getPath() . '/Resources/lang';
226
+        $langPath = $this->getPath().'/Resources/lang';
227 227
 
228 228
         if (is_dir($langPath)) {
229 229
             $this->loadTranslationsFrom($langPath, $lowerName);
@@ -243,8 +243,8 @@  discard block
 block discarded – undo
243 243
             $file = 'module.json';
244 244
         }
245 245
 
246
-        return Arr::get($this->moduleJson, $file, function () use ($file) {
247
-            return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files);
246
+        return Arr::get($this->moduleJson, $file, function() use ($file) {
247
+            return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files);
248 248
         });
249 249
     }
250 250
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      */
298 298
     protected function fireEvent($event): void
299 299
     {
300
-        $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]);
300
+        $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
301 301
     }
302 302
 
303 303
     /**
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     protected function registerFiles(): void
324 324
     {
325 325
         foreach ($this->get('files', []) as $file) {
326
-            include $this->path . '/' . $file;
326
+            include $this->path.'/'.$file;
327 327
         }
328 328
     }
329 329
 
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
      */
429 429
     public function getExtraPath(string $path): string
430 430
     {
431
-        return $this->getPath() . '/' . $path;
431
+        return $this->getPath().'/'.$path;
432 432
     }
433 433
 
434 434
     /**
Please login to merge, or discard this patch.
src/Commands/ComposerUpdateCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,21 +24,21 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
 
29
-            $composer_path = $module->getPath() . DIRECTORY_SEPARATOR . 'composer.json';
29
+            $composer_path = $module->getPath().DIRECTORY_SEPARATOR.'composer.json';
30 30
 
31 31
             $composer = json_decode(File::get($composer_path), true);
32 32
 
33 33
             $autoload = data_get($composer, 'autoload.psr-4');
34 34
 
35
-            if (! $autoload) {
35
+            if (!$autoload) {
36 36
                 return;
37 37
             }
38 38
 
39 39
             $key_name_with_app = sprintf('Modules\\%s\\App\\', $module->getStudlyName());
40 40
 
41
-            if (! array_key_exists($key_name_with_app, $autoload)) {
41
+            if (!array_key_exists($key_name_with_app, $autoload)) {
42 42
                 return;
43 43
             }
44 44
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         });
54 54
     }
55 55
 
56
-    public function getInfo(): string|null
56
+    public function getInfo(): string | null
57 57
     {
58 58
         return 'Updating Composer.json of modules...';
59 59
     }
Please login to merge, or discard this patch.
src/Commands/Actions/UpdateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@
 block discarded – undo
22 22
     {
23 23
         $module = $this->getModuleModel($name);
24 24
 
25
-        $this->components->task("Updating <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
25
+        $this->components->task("Updating <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
26 26
             $this->laravel['modules']->update($module);
27 27
         });
28 28
     }
29 29
 
30
-    public function getInfo(): string|null
30
+    public function getInfo(): string | null
31 31
     {
32 32
         return 'Updating Module ...';
33 33
     }
Please login to merge, or discard this patch.
src/Commands/Actions/DisableCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@
 block discarded – undo
33 33
             ? '<fg=red;options=bold>Disabled</>'
34 34
             : '<fg=green;options=bold>Enabled</>';
35 35
 
36
-        $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function () use ($module) {
36
+        $this->components->task("Disabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function() use ($module) {
37 37
             $module->disable();
38 38
         });
39 39
     }
40 40
 
41
-    public function getInfo(): string|null
41
+    public function getInfo(): string | null
42 42
     {
43 43
         return 'Disabling module ...';
44 44
     }
Please login to merge, or discard this patch.