Completed
Pull Request — master (#1186)
by
unknown
01:41
created
src/Commands/SeedMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $seederPath = GenerateConfigReader::read('seeder');
88 88
 
89
-        return $path . $seederPath->getPath() . '/' . $this->getSeederName() . '.php';
89
+        return $path.$seederPath->getPath().'/'.$this->getSeederName().'.php';
90 90
     }
91 91
 
92 92
     /**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $end = $this->option('master') ? 'DatabaseSeeder' : 'TableSeeder';
100 100
 
101
-        return basename(Str::studly($this->argument('name')) . $end);
101
+        return basename(Str::studly($this->argument('name')).$end);
102 102
     }
103 103
 
104 104
     /**
Please login to merge, or discard this patch.
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.