Completed
Pull Request — master (#357)
by
unknown
02:19
created
src/ModulesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     protected function registerNamespaces()
45 45
     {
46
-        $configPath = __DIR__ . '/../config/config.php';
46
+        $configPath = __DIR__.'/../config/config.php';
47 47
 
48 48
         $this->mergeConfigFrom($configPath, 'modules');
49 49
         $this->publishes([
Please login to merge, or discard this patch.
src/Lumen/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $modules = [];
40 40
 
41 41
         foreach ($cached as $name => $module) {
42
-            $path = $this->config('paths.modules') . '/' . $name;
42
+            $path = $this->config('paths.modules').'/'.$name;
43 43
 
44 44
             $modules[$name] = new Module($this->app, $name, $path);
45 45
         }
Please login to merge, or discard this patch.
src/Generators/ModuleGenerator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
                 return;
281 281
             }
282 282
 
283
-            $path = $this->module->getModulePath($this->getName()) . '/' . $folder;
283
+            $path = $this->module->getModulePath($this->getName()).'/'.$folder;
284 284
 
285 285
             $this->filesystem->makeDirectory($path, 0755, true);
286 286
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      */
296 296
     public function generateGitKeep($path)
297 297
     {
298
-        $this->filesystem->put($path . '/.gitkeep', '');
298
+        $this->filesystem->put($path.'/.gitkeep', '');
299 299
     }
300 300
 
301 301
     /**
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     public function generateFiles()
305 305
     {
306 306
         foreach ($this->getFiles() as $stub => $file) {
307
-            $path = $this->module->getModulePath($this->getName()) . $file;
307
+            $path = $this->module->getModulePath($this->getName()).$file;
308 308
 
309 309
             if (!$this->filesystem->isDirectory($dir = dirname($path))) {
310 310
                 $this->filesystem->makeDirectory($dir, 0775, true);
@@ -328,13 +328,13 @@  discard block
 block discarded – undo
328 328
         ]);
329 329
 
330 330
         $this->console->call('module:make-provider', [
331
-            'name' => $this->getName() . 'ServiceProvider',
331
+            'name' => $this->getName().'ServiceProvider',
332 332
             'module' => $this->getName(),
333 333
             '--master' => true,
334 334
         ]);
335 335
 
336 336
         $this->console->call('module:make-controller', [
337
-            'controller' => $this->getName() . 'Controller',
337
+            'controller' => $this->getName().'Controller',
338 338
             'module' => $this->getName(),
339 339
         ]);
340 340
     }
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     protected function getStubContents($stub)
350 350
     {
351 351
         return (new Stub(
352
-            '/' . $stub . '.stub',
352
+            '/'.$stub.'.stub',
353 353
             $this->getReplacement($stub)
354 354
         )
355 355
         )->render();
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
         $replaces = [];
384 384
 
385 385
         foreach ($keys as $key) {
386
-            if (method_exists($this, $method = 'get' . ucfirst(studly_case(strtolower($key))) . 'Replacement')) {
386
+            if (method_exists($this, $method = 'get'.ucfirst(studly_case(strtolower($key))).'Replacement')) {
387 387
                 $replaces[$key] = call_user_func([$this, $method]);
388 388
             } else {
389 389
                 $replaces[$key] = null;
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      */
399 399
     private function generateModuleJsonFile()
400 400
     {
401
-        $path = $this->module->getModulePath($this->getName()) . 'module.json';
401
+        $path = $this->module->getModulePath($this->getName()).'module.json';
402 402
 
403 403
         if (!$this->filesystem->isDirectory($dir = dirname($path))) {
404 404
             $this->filesystem->makeDirectory($dir, 0775, true);
@@ -415,13 +415,13 @@  discard block
 block discarded – undo
415 415
      */
416 416
     private function cleanModuleJsonFile()
417 417
     {
418
-        $path = $this->module->getModulePath($this->getName()) . 'module.json';
418
+        $path = $this->module->getModulePath($this->getName()).'module.json';
419 419
 
420 420
         $content = $this->filesystem->get($path);
421 421
         $namespace = $this->getModuleNamespaceReplacement();
422 422
         $studlyName = $this->getStudlyNameReplacement();
423 423
 
424
-        $provider = '"' . $namespace . '\\\\' . $studlyName . '\\\\Providers\\\\' . $studlyName . 'ServiceProvider"';
424
+        $provider = '"'.$namespace.'\\\\'.$studlyName.'\\\\Providers\\\\'.$studlyName.'ServiceProvider"';
425 425
 
426 426
         $content = str_replace($provider, '', $content);
427 427
 
Please login to merge, or discard this patch.
src/Commands/ControllerMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $controllerPath = $this->laravel['modules']->config('paths.generator.controller');
45 45
 
46
-        return $path . $controllerPath . '/' . $this->getControllerName() . '.php';
46
+        return $path.$controllerPath.'/'.$this->getControllerName().'.php';
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
src/Commands/MiddlewareMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         $seederPath = $this->laravel['modules']->config('paths.generator.filter');
74 74
 
75
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
75
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/Commands/ProviderMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
79 79
 
80
-        return (new Stub('/' . $stub . '.stub', [
80
+        return (new Stub('/'.$stub.'.stub', [
81 81
             'NAMESPACE' => $this->getClassNamespace($module),
82 82
             'CLASS'     => $this->getClass(),
83 83
         ]))->render();
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         $generatorPath = $this->laravel['modules']->config('paths.generator.provider');
94 94
 
95
-        return $path . $generatorPath . '/' . $this->getFileName() . '.php';
95
+        return $path.$generatorPath.'/'.$this->getFileName().'.php';
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/Commands/MailMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
         $mailPath = $this->laravel['modules']->config('paths.generator.emails', 'Emails');
67 67
 
68
-        return $path . $mailPath . '/' . $this->getFileName() . '.php';
68
+        return $path.$mailPath.'/'.$this->getFileName().'.php';
69 69
     }
70 70
 
71 71
     /**
Please login to merge, or discard this patch.
src/Commands/NotificationMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $mailPath = $this->laravel['modules']->config('paths.generator.notifications', 'Notifications');
47 47
 
48
-        return $path . $mailPath . '/' . $this->getFileName() . '.php';
48
+        return $path.$mailPath.'/'.$this->getFileName().'.php';
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Commands/RuleMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         $rulePath = $this->laravel['modules']->config('paths.generator.rules');
69 69
 
70
-        return $path . $rulePath . '/' . $this->getFileName() . '.php';
70
+        return $path.$rulePath.'/'.$this->getFileName().'.php';
71 71
     }
72 72
 
73 73
     /**
Please login to merge, or discard this patch.