Passed
Push — master ( caba0a...59c1a3 )
by Neil
04:40
created
src/Traits/MakeRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\Facades\App;
6 6
 
7
-trait MakeRoutes{
7
+trait MakeRoutes {
8 8
     /**
9 9
      * @param $module
10 10
      */
Please login to merge, or discard this patch.
src/Console/MakeModuleCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $this->warn('Options:');
114 114
         $this->info('   --create                - Creates the folder structure and web routes file for a module');
115 115
         $this->info('   --controller [FileName] [--plain] - Creates a controller for the module given - add'.
116
-         ' --plain to create an empty controller.');
116
+            ' --plain to create an empty controller.');
117 117
 //        $this->info('   --migration [FileName]  - Creates a migration for the module given');
118 118
 //        $this->info('   --model [FileName]      - Creates a model for the module given');
119 119
         $this->info('   --webroute              - Creates a web routes file for the module given');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
             }
85 85
 
86 86
             // Has a File Name been given?
87
-            if($this->isFileNameGiven($filename)){
87
+            if ($this->isFileNameGiven($filename)) {
88 88
 
89 89
                 // Create Controller
90
-                if($this->option('controller')) {
90
+                if ($this->option('controller')) {
91 91
                     $this->createController($module, $filename);
92 92
                     return;
93 93
                 }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $this->line('');
115 115
         $this->warn('Options:');
116 116
         $this->info('   --create                - Creates the folder structure and web routes file for a module');
117
-        $this->info('   --controller [FileName] [--plain] - Creates a controller for the module given - add'.
117
+        $this->info('   --controller [FileName] [--plain] - Creates a controller for the module given - add' .
118 118
          ' --plain to create an empty controller.');
119 119
 //        $this->info('   --migration [FileName]  - Creates a migration for the module given');
120 120
 //        $this->info('   --model [FileName]      - Creates a model for the module given');
Please login to merge, or discard this patch.
src/ModuleServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     protected function loadModuleWebRoutes($module)
174 174
     {
175
-        if (file_exists(base_path() .'/app/Modules/' . $module . '/web.php')) {
175
+        if (file_exists(base_path() . '/app/Modules/' . $module . '/web.php')) {
176 176
             $this->loadRoutesFrom(base_path('app/Modules/' . $module . '/web.php'));
177 177
         }
178 178
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     protected function loadModuleAPIRoutes($module)
184 184
     {
185
-        if (file_exists(base_path() .'/app/Modules/' . $module . '/api.php')) {
185
+        if (file_exists(base_path() . '/app/Modules/' . $module . '/api.php')) {
186 186
             $this->loadRoutesFrom(base_path('app/Modules/' . $module . '/api.php'));
187 187
         }
188 188
     }
Please login to merge, or discard this patch.
src/Traits/MakeController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\Facades\App;
6 6
 
7
-trait MakeController{
7
+trait MakeController {
8 8
 
9 9
     /**
10 10
      * @param $module
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
                 base_path() . "/app/Modules/" . $module . "/Controllers/" . $filename . ".php",
21 21
                 $this->compileControllerStub($module, $filename)
22 22
             );
23
-            (file_exists(base_path() . "/app/Modules/" . $module . "/Controllers/" . $filename . ".php") ? $this->info('Done'):$this->error('An error occurred'));
23
+            (file_exists(base_path() . "/app/Modules/" . $module . "/Controllers/" . $filename . ".php") ? $this->info('Done') : $this->error('An error occurred'));
24 24
             return;
25 25
         }
26 26
         $this->error("Controller already exists");
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         return str_replace(
52 52
             ['DummyNamespace', 'DummyClass', 'DummyRootNamespaceHttp'],
53
-            [App::getNamespace() . 'Modules\\' . $moduleName . '\Controllers', $className, App::getNamespace() .'Http'],
53
+            [App::getNamespace() . 'Modules\\' . $moduleName . '\Controllers', $className, App::getNamespace() . 'Http'],
54 54
             file_get_contents($stub)
55 55
         );
56 56
     }
Please login to merge, or discard this patch.