Completed
Pull Request — master (#1829)
by korridor
05:46
created
src/Commands/Make/ModuleMakeCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-    * Get module type .
80
-    *
81
-    * @return string
82
-    */
79
+     * Get module type .
80
+     *
81
+     * @return string
82
+     */
83 83
     private function getModuleType()
84 84
     {
85 85
         $isPlain = $this->option('plain');
Please login to merge, or discard this patch.
src/Commands/Make/ListenerMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
 
78 78
     protected function getEventName(Module $module)
79 79
     {
80
-        $namespace = $this->laravel['modules']->config('namespace') . "\\" . $module->getStudlyName();
80
+        $namespace = $this->laravel['modules']->config('namespace')."\\".$module->getStudlyName();
81 81
         $eventPath = GenerateConfigReader::read('event');
82 82
 
83
-        $eventName = $namespace . "\\" . $eventPath->getPath() . "\\" . $this->option('event');
83
+        $eventName = $namespace."\\".$eventPath->getPath()."\\".$this->option('event');
84 84
 
85 85
         return str_replace('/', '\\', $eventName);
86 86
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $listenerPath = GenerateConfigReader::read('listener');
93 93
 
94
-        return $path . $listenerPath->getPath() . '/' . $this->getFileName() . '.php';
94
+        return $path.$listenerPath->getPath().'/'.$this->getFileName().'.php';
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
src/Commands/Make/PolicyMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
         $policyPath = GenerateConfigReader::read('policies');
78 78
 
79
-        return $path . $policyPath->getPath() . '/' . $this->getFileName() . '.php';
79
+        return $path.$policyPath->getPath().'/'.$this->getFileName().'.php';
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
src/Commands/Make/SeedMakeCommand.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
         $seederPath = GenerateConfigReader::read('seeder');
75 75
 
76
-        return $path . $seederPath->getPath() . '/' . $this->getSeederName() . '.php';
76
+        return $path.$seederPath->getPath().'/'.$this->getSeederName().'.php';
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
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/RuleMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
         $rulePath = GenerateConfigReader::read('rules');
78 78
 
79
-        return $path . $rulePath->getPath() . '/' . $this->getFileName() . '.php';
79
+        return $path.$rulePath->getPath().'/'.$this->getFileName().'.php';
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
src/Commands/Make/FactoryMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $factoryPath = GenerateConfigReader::read('factory');
71 71
 
72
-        return $path . $factoryPath->getPath() . '/' . $this->getFileName();
72
+        return $path.$factoryPath->getPath().'/'.$this->getFileName();
73 73
     }
74 74
 
75 75
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     private function getFileName()
79 79
     {
80
-        return Str::studly($this->argument('name')) . 'Factory.php';
80
+        return Str::studly($this->argument('name')).'Factory.php';
81 81
     }
82 82
 
83 83
     /**
@@ -111,6 +111,6 @@  discard block
 block discarded – undo
111 111
 
112 112
         $path = str_replace('/', '\\', $path);
113 113
 
114
-        return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $path;
114
+        return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$path;
115 115
     }
116 116
 }
Please login to merge, or discard this patch.