Completed
Push — master ( 7a4ed5...39fb48 )
by Nicolas
02:33
created
src/Commands/RequestMakeCommand.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
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         $seederPath = $this->laravel['modules']->config('paths.generator.request');
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/RuleMakeCommand.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
@@ -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.
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/JobMakeCommand.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
         $jobPath = $this->laravel['modules']->config('paths.generator.jobs');
67 67
 
68
-        return $path . $jobPath . '/' . $this->getFileName() . '.php';
68
+        return $path.$jobPath.'/'.$this->getFileName().'.php';
69 69
     }
70 70
 
71 71
     /**
Please login to merge, or discard this patch.
src/Commands/EventMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $module = $this->laravel['modules']->findOrFail($this->getModuleName());
32 32
 
33 33
         return (new Stub('/event.stub', [
34
-            'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event'),
34
+            'NAMESPACE' => $this->getClassNamespace($module)."\\".config('modules.paths.generator.event'),
35 35
             "CLASS"     => $this->getClass(),
36 36
         ]))->render();
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $path       = $this->laravel['modules']->getModulePath($this->getModuleName());
42 42
         $seederPath = $this->laravel['modules']->config('paths.generator.event');
43 43
 
44
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
44
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Commands/ListenerMakeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function handle()
32 32
     {
33
-        if (! $this->option('event')) {
33
+        if (!$this->option('event')) {
34 34
             $this->error('The --event option is necessary');
35 35
 
36 36
             return;
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $namespace = str_replace('/', '\\', config('modules.paths.generator.listener'));
81 81
 
82
-        return $this->getClassNamespace($module) . "\\" . $namespace;
82
+        return $this->getClassNamespace($module)."\\".$namespace;
83 83
     }
84 84
 
85 85
     protected function getEventName(Module $module)
86 86
     {
87
-        return $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event') . "\\" . $this->option('event');
87
+        return $this->getClassNamespace($module)."\\".config('modules.paths.generator.event')."\\".$this->option('event');
88 88
     }
89 89
 
90 90
     protected function getDestinationFilePath()
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         $seederPath = $this->laravel['modules']->config('paths.generator.listener');
95 95
 
96
-        return $path . $seederPath . '/' . $this->getFileName() . '.php';
96
+        return $path.$seederPath.'/'.$this->getFileName().'.php';
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('module_path')) {
3
+if (!function_exists('module_path')) {
4 4
     function module_path($name)
5 5
     {
6 6
         $module = app('modules')->find($name);
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     }
10 10
 }
11 11
 
12
-if (! function_exists('public_path')) {
12
+if (!function_exists('public_path')) {
13 13
     /**
14 14
      * Get the path to the public folder.
15 15
      *
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     function public_path($path = '')
20 20
     {
21
-        return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);
21
+        return app()->make('path.public').($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Commands/MigrationMakeCommand.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * @throws \InvalidArgumentException
69 69
      *
70
-     * @return mixed
70
+     * @return Stub
71 71
      */
72 72
     protected function getTemplateContents()
73 73
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @return mixed
110
+     * @return string
111 111
      */
112 112
     protected function getDestinationFilePath()
113 113
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         $generatorPath = $this->laravel['modules']->config('paths.generator.migration');
115 115
 
116
-        return $path . $generatorPath . '/' . $this->getFileName() . '.php';
116
+        return $path.$generatorPath.'/'.$this->getFileName().'.php';
117 117
     }
118 118
 
119 119
     /**
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private function getFileName()
123 123
     {
124
-        return date('Y_m_d_His_') . $this->getSchemaName();
124
+        return date('Y_m_d_His_').$this->getSchemaName();
125 125
     }
126 126
 
127 127
     /**
Please login to merge, or discard this patch.