Completed
Push — master ( 7a7060...5183c9 )
by Nicolas
02:35 queued 21s
created
src/Commands/ResourceMakeCommand.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return string
63 63
      */
64 64
     protected function getTemplateContents()
65 65
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     protected function getDestinationFilePath()
79 79
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         $seederPath = $this->laravel['modules']->config('paths.generator.resource');
70 70
 
71
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
71
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
src/Commands/TestMakeCommand.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return string
63 63
      */
64 64
     protected function getTemplateContents()
65 65
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     protected function getDestinationFilePath()
79 79
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         $seederPath = $this->laravel['modules']->config('paths.generator.test');
62 62
 
63
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
63
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
src/Commands/ListenerMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $namespace = str_replace('/', '\\', config('modules.paths.generator.listener'));
72 72
 
73
-        return $this->getClassNamespace($module) . "\\" . $namespace;
73
+        return $this->getClassNamespace($module)."\\".$namespace;
74 74
     }
75 75
 
76 76
     protected function getEventName(Module $module)
77 77
     {
78
-        return $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event') . "\\" . $this->option('event');
78
+        return $this->getClassNamespace($module)."\\".config('modules.paths.generator.event')."\\".$this->option('event');
79 79
     }
80 80
 
81 81
     protected function getDestinationFilePath()
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $seederPath = $this->laravel['modules']->config('paths.generator.listener');
86 86
 
87
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
87
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
src/Generators/ModuleGenerator.php 1 patch
Spacing   +11 added lines, -11 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] = $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
 
@@ -490,6 +490,6 @@  discard block
 block discarded – undo
490 490
 
491 491
     protected function getRoutesLocationReplacement()
492 492
     {
493
-        return '/' . $this->module->config('stubs.files.routes');
493
+        return '/'.$this->module->config('stubs.files.routes');
494 494
     }
495 495
 }
Please login to merge, or discard this patch.
src/Commands/RouteProviderMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $generatorPath = $this->laravel['modules']->config('paths.generator.provider');
74 74
 
75
-        return $path . $generatorPath . '/' . $this->getFileName() . '.php';
75
+        return $path.$generatorPath.'/'.$this->getFileName().'.php';
76 76
     }
77 77
 
78 78
     /**
@@ -80,6 +80,6 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected function getRoutesPath()
82 82
     {
83
-        return '/' . $this->laravel['config']->get('stubs.files.routes', 'Http/routes.php');
83
+        return '/'.$this->laravel['config']->get('stubs.files.routes', 'Http/routes.php');
84 84
     }
85 85
 }
Please login to merge, or discard this patch.