Completed
Pull Request — master (#1186)
by
unknown
01:44
created
src/Commands/MigrationMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         $generatorPath = GenerateConfigReader::read('migration');
118 118
 
119
-        return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php';
119
+        return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php';
120 120
     }
121 121
 
122 122
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     private function getFileName()
126 126
     {
127
-        return basename(date('Y_m_d_His_') . $this->getSchemaName());
127
+        return basename(date('Y_m_d_His_').$this->getSchemaName());
128 128
     }
129 129
 
130 130
     /**
Please login to merge, or discard this patch.
src/Commands/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()
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
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             'NAMESPACE'         => $this->getClassNamespace($module),
83 83
             'CLASS'             => $this->getClass(),
84 84
             'LOWER_NAME'        => $module->getLowerName(),
85
-            'COMPONENT_NAME'    => 'components.' . Str::lower($this->argument('name')),
85
+            'COMPONENT_NAME'    => 'components.'.Str::lower($this->argument('name')),
86 86
         ]))->render();
87 87
     }
88 88
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $path = $this->laravel['modules']->getModulePath($this->getModuleName());
95 95
         $factoryPath = GenerateConfigReader::read('component-class');
96 96
 
97
-        return $path . $factoryPath->getPath() . '/' . $this->getFileName();
97
+        return $path.$factoryPath->getPath().'/'.$this->getFileName();
98 98
     }
99 99
 
100 100
     /**
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
      */
103 103
     private function getFileName()
104 104
     {
105
-        return basename(Str::studly($this->argument('name')) . '.php');
105
+        return basename(Str::studly($this->argument('name')).'.php');
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
src/Commands/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 basename(Str::lower($this->argument('name')) . '.blade.php');
74
+        return basename(Str::lower($this->argument('name')).'.blade.php');
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
src/Commands/GeneratorCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,19 +86,19 @@
 block discarded – undo
86 86
     public function getClassNamespace($module)
87 87
     {
88 88
         $extra = str_replace($this->getClass(), '', $this->argument($this->argumentName));
89
-        $extra = substr($module->getStudlyName(),0, strlen($extra)+1) ? '' : str_replace('/', '\\', $extra);
89
+        $extra = substr($module->getStudlyName(), 0, strlen($extra) + 1) ? '' : str_replace('/', '\\', $extra);
90 90
 
91
-        if (substr($this->argument($this->argumentName), 0,4) == 'Api\\') {
91
+        if (substr($this->argument($this->argumentName), 0, 4) == 'Api\\') {
92 92
             $extra = 'Api';
93 93
         }
94 94
 
95 95
         $namespace = $this->laravel['modules']->config('namespace');
96 96
 
97
-        $namespace .= '\\' . $module->getStudlyName();
97
+        $namespace .= '\\'.$module->getStudlyName();
98 98
 
99
-        $namespace .= '\\' . $this->getDefaultNamespace();
99
+        $namespace .= '\\'.$this->getDefaultNamespace();
100 100
 
101
-        $namespace .= '\\' . $extra;
101
+        $namespace .= '\\'.$extra;
102 102
 
103 103
         $namespace = str_replace('/', '\\', $namespace);
104 104
 
Please login to merge, or discard this patch.
src/Commands/SeedCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $name = $module->getName();
105 105
         $config = $module->get('migration');
106 106
         if (is_array($config) && array_key_exists('seeds', $config)) {
107
-            foreach ((array)$config['seeds'] as $class) {
107
+            foreach ((array) $config['seeds'] as $class) {
108 108
                 if (class_exists($class)) {
109 109
                     $seeders[] = $class;
110 110
                 }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     protected function dbSeed($className)
140 140
     {
141 141
         if ($option = $this->option('class')) {
142
-            $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\') . $option;
142
+            $params['--class'] = Str::finish(substr($className, 0, strrpos($className, '\\')), '\\').$option;
143 143
         } else {
144 144
             $params = ['--class' => $className];
145 145
         }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $config = GenerateConfigReader::read('seeder');
172 172
         $seederPath = str_replace('/', '\\', $config->getPath());
173 173
 
174
-        return $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $baseModuleName . 'DatabaseSeeder';
174
+        return $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$baseModuleName.'DatabaseSeeder';
175 175
     }
176 176
 
177 177
     /**
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $foundModules = [];
192 192
         foreach ($this->laravel['modules']->config('scan.paths') as $path) {
193 193
             $namespace = array_slice(explode('/', $path), -1)[0];
194
-            $foundModules[] = $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder';
194
+            $foundModules[] = $namespace.'\\'.$name.'\\'.$seederPath.'\\'.$name.'DatabaseSeeder';
195 195
         }
196 196
 
197 197
         return $foundModules;
Please login to merge, or discard this patch.