Completed
Pull Request — master (#1811)
by
unknown
06:50
created
src/Commands/Make/FactoryMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 
64 64
         $factoryPath = GenerateConfigReader::read('factory');
65 65
 
66
-        return $path . $factoryPath->getPath() . '/' . $this->getFileName();
66
+        return $path.$factoryPath->getPath().'/'.$this->getFileName();
67 67
     }
68 68
 
69 69
     private function getFileName(): string
70 70
     {
71
-        return Str::studly($this->argument('name')) . 'Factory.php';
71
+        return Str::studly($this->argument('name')).'Factory.php';
72 72
     }
73 73
 
74 74
     private function getModelName(): string
@@ -98,6 +98,6 @@  discard block
 block discarded – undo
98 98
 
99 99
         $path = str_replace('/', '\\', $path);
100 100
 
101
-        return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $path;
101
+        return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$path;
102 102
     }
103 103
 }
Please login to merge, or discard this patch.
src/Commands/Make/MailMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
         $mailPath = GenerateConfigReader::read('emails');
75 75
 
76
-        return $path . $mailPath->getPath() . '/' . $this->getFileName() . '.php';
76
+        return $path.$mailPath->getPath().'/'.$this->getFileName().'.php';
77 77
     }
78 78
 
79 79
     private function getFileName(): string
Please login to merge, or discard this patch.
src/Commands/Make/ListenerMakeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
             ?? ltrim(config('modules.paths.generator.listener.path', 'Listeners'), config('modules.paths.app_folder', ''));
75 75
     }
76 76
 
77
-    protected function getEventName(Module $module): array|string
77
+    protected function getEventName(Module $module): array | string
78 78
     {
79
-        $namespace = $this->laravel['modules']->config('namespace') . "\\" . $module->getStudlyName();
79
+        $namespace = $this->laravel['modules']->config('namespace')."\\".$module->getStudlyName();
80 80
         $eventPath = GenerateConfigReader::read('event');
81 81
 
82
-        $eventName = $namespace . "\\" . $eventPath->getPath() . "\\" . $this->option('event');
82
+        $eventName = $namespace."\\".$eventPath->getPath()."\\".$this->option('event');
83 83
 
84 84
         return str_replace('/', '\\', $eventName);
85 85
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $listenerPath = GenerateConfigReader::read('listener');
97 97
 
98
-        return $path . $listenerPath->getPath() . '/' . $this->getFileName() . '.php';
98
+        return $path.$listenerPath->getPath().'/'.$this->getFileName().'.php';
99 99
     }
100 100
 
101 101
     protected function getFileName(): string
Please login to merge, or discard this patch.
src/Commands/Make/ProviderMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         /** @var Module $module */
74 74
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
75 75
 
76
-        return (new Stub('/' . $stub . '.stub', [
76
+        return (new Stub('/'.$stub.'.stub', [
77 77
             'NAMESPACE'        => $this->getClassNamespace($module),
78 78
             'CLASS'            => $this->getClass(),
79 79
             'LOWER_NAME'       => $module->getLowerName(),
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $generatorPath = GenerateConfigReader::read('provider');
97 97
 
98
-        return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php';
98
+        return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php';
99 99
     }
100 100
 
101 101
     private function getFileName(): string
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,11 +35,11 @@
 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
     private function getFileName(): string
42 42
     {
43
-        return Str::lower($this->argument('name')) . '.blade.php';
43
+        return Str::lower($this->argument('name')).'.blade.php';
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Commands/Make/ComponentClassMakeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function writeComponentViewTemplate(): void
51 51
     {
52
-        $this->call('module:make-component-view', ['name' => $this->argument('name') , 'module' => $this->argument('module')]);
52
+        $this->call('module:make-component-view', ['name' => $this->argument('name'), 'module' => $this->argument('module')]);
53 53
     }
54 54
 
55 55
     public function getDefaultNamespace(): string
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             'NAMESPACE'         => $this->getClassNamespace($module),
82 82
             'CLASS'             => $this->getClass(),
83 83
             'LOWER_NAME'        => $module->getLowerName(),
84
-            'COMPONENT_NAME'    => 'components.' . Str::lower($this->argument('name')),
84
+            'COMPONENT_NAME'    => 'components.'.Str::lower($this->argument('name')),
85 85
         ]))->render();
86 86
     }
87 87
 
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
         $path = $this->laravel['modules']->getModulePath($this->getModuleName());
91 91
         $factoryPath = GenerateConfigReader::read('component-class');
92 92
 
93
-        return $path . $factoryPath->getPath() . '/' . $this->getFileName();
93
+        return $path.$factoryPath->getPath().'/'.$this->getFileName();
94 94
     }
95 95
 
96 96
     private function getFileName(): string
97 97
     {
98
-        return Str::studly($this->argument('name')) . '.php';
98
+        return Str::studly($this->argument('name')).'.php';
99 99
     }
100 100
 }
Please login to merge, or discard this patch.