Completed
Pull Request — master (#677)
by Burak
03:40
created
config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     'stubs' => [
26 26
         'enabled' => false,
27
-        'path' => base_path() . '/vendor/nwidart/laravel-modules/src/Commands/stubs',
27
+        'path' => base_path().'/vendor/nwidart/laravel-modules/src/Commands/stubs',
28 28
         'files' => [
29 29
             'routes/web' => 'Routes/web.php',
30 30
             'routes/api' => 'Routes/api.php',
Please login to merge, or discard this patch.
src/Commands/RouteProviderMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $generatorPath = GenerateConfigReader::read('provider');
80 80
 
81
-        return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php';
81
+        return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php';
82 82
     }
83 83
 
84 84
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     protected function getWebRoutesPath()
88 88
     {
89
-        return '/' . $this->laravel['config']->get('stubs.files.routes', 'Routes/web.php');
89
+        return '/'.$this->laravel['config']->get('stubs.files.routes', 'Routes/web.php');
90 90
     }
91 91
 
92 92
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function getApiRoutesPath()
96 96
     {
97
-        return '/' . $this->laravel['config']->get('stubs.files.routes', 'Routes/api.php');
97
+        return '/'.$this->laravel['config']->get('stubs.files.routes', 'Routes/api.php');
98 98
     }
99 99
 
100 100
     public function getDefaultNamespace() : string
Please login to merge, or discard this patch.
src/Support/Stub.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getPath()
73 73
     {
74
-        $path = config('modules.stubs.path') . $this->path;
74
+        $path = config('modules.stubs.path').$this->path;
75 75
 
76
-        return file_exists($path) ? $path : static::getBasePath() . $this->path;
76
+        return file_exists($path) ? $path : static::getBasePath().$this->path;
77 77
     }
78 78
 
79 79
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $contents = file_get_contents($this->getPath());
107 107
 
108 108
         foreach ($this->replaces as $search => $replace) {
109
-            $contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents);
109
+            $contents = str_replace('$'.strtoupper($search).'$', $replace, $contents);
110 110
         }
111 111
 
112 112
         return $contents;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function saveTo($path, $filename)
134 134
     {
135
-        return file_put_contents($path . '/' . $filename, $this->getContents());
135
+        return file_put_contents($path.'/'.$filename, $this->getContents());
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.