Completed
Push — master ( 0a1e1d...ccf235 )
by Song
02:31
created
src/Extension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function disabled()
201 201
     {
202
-        return ! $this->enabled();
202
+        return !$this->enabled();
203 203
     }
204 204
 
205 205
     /**
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         Permission::create([
316 316
             'name'      => $name,
317 317
             'slug'      => $slug,
318
-            'http_path' => '/' . trim($path, '/'),
318
+            'http_path' => '/'.trim($path, '/'),
319 319
         ]);
320 320
     }
321 321
 
Please login to merge, or discard this patch.
src/Console/ExtendCommand.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -107,17 +107,17 @@  discard block
 block discarded – undo
107 107
 
108 108
         // copy files
109 109
         $this->copy([
110
-            __DIR__ . '/stubs/extension/view.stub'       => 'resources/views/index.blade.php',
111
-            __DIR__ . '/stubs/extension/.gitignore.stub' => '.gitignore',
112
-            __DIR__ . '/stubs/extension/README.md.stub'  => 'README.md',
113
-            __DIR__ . '/stubs/extension/LICENSE.stub'    => 'LICENSE',
110
+            __DIR__.'/stubs/extension/view.stub'       => 'resources/views/index.blade.php',
111
+            __DIR__.'/stubs/extension/.gitignore.stub' => '.gitignore',
112
+            __DIR__.'/stubs/extension/README.md.stub'  => 'README.md',
113
+            __DIR__.'/stubs/extension/LICENSE.stub'    => 'LICENSE',
114 114
         ]);
115 115
 
116 116
         // make composer.json
117 117
         $composerContents = str_replace(
118 118
             [':package', ':namespace', ':class_name'],
119 119
             [$this->package, str_replace('\\', '\\\\', $this->namespace).'\\\\', $this->className],
120
-            file_get_contents(__DIR__ . '/stubs/extension/composer.json.stub')
120
+            file_get_contents(__DIR__.'/stubs/extension/composer.json.stub')
121 121
         );
122 122
         $this->putFile('composer.json', $composerContents);
123 123
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $classContents = str_replace(
126 126
             [':namespace', ':class_name', ':title', ':path', ':base_package'],
127 127
             [$this->namespace, $this->className, title_case($this->className), basename($this->package), basename($this->package)],
128
-            file_get_contents(__DIR__ . '/stubs/extension/extension.stub')
128
+            file_get_contents(__DIR__.'/stubs/extension/extension.stub')
129 129
         );
130 130
         $this->putFile("src/{$this->className}.php", $classContents);
131 131
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $providerContents = str_replace(
134 134
             [':namespace', ':class_name', ':base_package', ':package'],
135 135
             [$this->namespace, $this->className, basename($this->package), $this->package],
136
-            file_get_contents(__DIR__ . '/stubs/extension/service-provider.stub')
136
+            file_get_contents(__DIR__.'/stubs/extension/service-provider.stub')
137 137
         );
138 138
         $this->putFile("src/{$this->className}ServiceProvider.php", $providerContents);
139 139
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $controllerContent = str_replace(
142 142
             [':namespace', ':class_name', ':base_package'],
143 143
             [$this->namespace, $this->className, basename($this->package)],
144
-            file_get_contents(__DIR__ . '/stubs/extension/controller.stub')
144
+            file_get_contents(__DIR__.'/stubs/extension/controller.stub')
145 145
         );
146 146
         $this->putFile("src/Http/Controllers/{$this->className}Controller.php", $controllerContent);
147 147
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $routesContent = str_replace(
150 150
             [':namespace', ':class_name', ':path'],
151 151
             [$this->namespace, $this->className, basename($this->package)],
152
-            file_get_contents(__DIR__ . '/stubs/extension/routes.stub')
152
+            file_get_contents(__DIR__.'/stubs/extension/routes.stub')
153 153
         );
154 154
         $this->putFile("routes/web.php", $routesContent);
155 155
     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         if (!$namespace = $this->option('namespace')) {
165 165
             list($vendor, $name) = explode('/', $this->package);
166 166
 
167
-            $default = str_replace(['-', '-'], '', title_case($vendor) . '\\' . title_case($name));
167
+            $default = str_replace(['-', '-'], '', title_case($vendor).'\\'.title_case($name));
168 168
 
169 169
             $namespace = $this->ask('Root namespace', $default);
170 170
         }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     protected function makeDirs()
189 189
     {
190
-        $this->basePath = rtrim($this->extensionDir, '/') . '/' . ltrim($this->package, '/');
190
+        $this->basePath = rtrim($this->extensionDir, '/').'/'.ltrim($this->package, '/');
191 191
 
192 192
         $this->makeDir($this->dirs);
193 193
     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             return rtrim($this->basePath, '/');
218 218
         }
219 219
 
220
-        return rtrim($this->basePath, '/') . '/' . ltrim($path, '/');
220
+        return rtrim($this->basePath, '/').'/'.ltrim($path, '/');
221 221
     }
222 222
 
223 223
     /**
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      */
267 267
     protected function makeDir($paths)
268 268
     {
269
-        foreach ((array)$paths as $path) {
269
+        foreach ((array) $paths as $path) {
270 270
             $path = $this->extensionPath($path);
271 271
 
272 272
             $this->filesystem->makeDirectory($path, 0755, true, true);
Please login to merge, or discard this patch.