Completed
Pull Request — master (#354)
by Martin
02:17
created
src/Commands/ProviderMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
79 79
 
80
-        return (new Stub('/' . $stub . '.stub', [
80
+        return (new Stub('/'.$stub.'.stub', [
81 81
             'NAMESPACE' => $this->getClassNamespace($module),
82 82
             'CLASS'     => $this->getClass(),
83 83
         ]))->render();
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         $generatorPath = $this->laravel['modules']->config('paths.generator.provider');
94 94
 
95
-        return $path . $generatorPath . '/' . $this->getFileName() . '.php';
95
+        return $path.$generatorPath.'/'.$this->getFileName().'.php';
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/Commands/GenerateRouteProviderCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,6 +71,6 @@
 block discarded – undo
71 71
 
72 72
         $generatorPath = $this->laravel['modules']->config('paths.generator.provider');
73 73
 
74
-        return $path . $generatorPath . '/' . $this->getFileName() . '.php';
74
+        return $path.$generatorPath.'/'.$this->getFileName().'.php';
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
src/Commands/FactoryMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $path = $this->laravel['modules']->getModulePath($this->getModuleName());
62 62
 
63
-        return $path . 'Database/factories/' . $this->getFileName();
63
+        return $path.'Database/factories/'.$this->getFileName();
64 64
     }
65 65
 
66 66
     /**
@@ -68,6 +68,6 @@  discard block
 block discarded – undo
68 68
      */
69 69
     private function getFileName()
70 70
     {
71
-        return Str::studly($this->argument('name')) . '.php';
71
+        return Str::studly($this->argument('name')).'.php';
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
src/Commands/EventMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
32 32
 
33 33
         return (new Stub('/event.stub', [
34
-            'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event'),
34
+            'NAMESPACE' => $this->getClassNamespace($module)."\\".config('modules.paths.generator.event'),
35 35
             "CLASS"     => $this->getClass(),
36 36
         ]))->render();
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $path       = $this->laravel['modules']->getModulePath($this->getModuleName());
42 42
         $seederPath = $this->laravel['modules']->config('paths.generator.event');
43 43
 
44
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
44
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Commands/ListenerMakeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function handle()
32 32
     {
33
-        if (! $this->option('event')) {
33
+        if (!$this->option('event')) {
34 34
             $this->error('The --event option is necessary');
35 35
 
36 36
             return;
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $namespace = str_replace('/', '\\', config('modules.paths.generator.listener'));
81 81
 
82
-        return $this->getClassNamespace($module) . "\\" . $namespace;
82
+        return $this->getClassNamespace($module)."\\".$namespace;
83 83
     }
84 84
 
85 85
     protected function getEventName(Module $module)
86 86
     {
87
-        return $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event') . "\\" . $this->option('event');
87
+        return $this->getClassNamespace($module)."\\".config('modules.paths.generator.event')."\\".$this->option('event');
88 88
     }
89 89
 
90 90
     protected function getDestinationFilePath()
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         $seederPath = $this->laravel['modules']->config('paths.generator.listener');
95 95
 
96
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
96
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.