Completed
Pull Request — master (#1543)
by
unknown
06:50
created
src/Module.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     {
184 184
         $lowerName = $this->getLowerName();
185 185
 
186
-        $langPath = $this->getPath() . '/Resources/lang';
186
+        $langPath = $this->getPath().'/Resources/lang';
187 187
 
188 188
         if (is_dir($langPath)) {
189 189
             $this->loadTranslationsFrom($langPath, $lowerName);
@@ -203,8 +203,8 @@  discard block
 block discarded – undo
203 203
             $file = 'module.json';
204 204
         }
205 205
 
206
-        return Arr::get($this->moduleJson, $file, function () use ($file) {
207
-            return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files);
206
+        return Arr::get($this->moduleJson, $file, function() use ($file) {
207
+            return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files);
208 208
         });
209 209
     }
210 210
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     protected function fireEvent($event): void
259 259
     {
260
-        $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]);
260
+        $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
261 261
     }
262 262
     /**
263 263
      * Register the aliases from this module.
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     protected function registerFiles(): void
283 283
     {
284 284
         foreach ($this->get('files', []) as $file) {
285
-            include $this->path . '/' . $file;
285
+            include $this->path.'/'.$file;
286 286
         }
287 287
     }
288 288
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     public function getExtraPath(string $path): string
389 389
     {
390
-        return $this->getPath() . '/' . $path;
390
+        return $this->getPath().'/'.$path;
391 391
     }
392 392
 
393 393
     /**
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
     public function getDatabaseName(): ?string
431 431
     {
432 432
         $connectionName = config($this->getLowerName().'.connection');
433
-        if($connectionName) {
433
+        if ($connectionName) {
434 434
             return DB::connection($connectionName)->getDatabaseName();
435 435
         }
436 436
 
Please login to merge, or discard this patch.
src/Commands/MigrateStatusCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
 
51 51
         foreach ($this->module->getOrdered($this->option('direction')) as $module) {
52
-            $this->line('Running for module: <info>' . $module->getName() . '</info>');
52
+            $this->line('Running for module: <info>'.$module->getName().'</info>');
53 53
             $this->migrateStatus($module);
54 54
         }
55 55
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath());
67 67
 
68 68
         $database = $this->option('database');
69
-        if(!$database) {
69
+        if (!$database) {
70 70
             $database = $module->getDatabaseName();
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Commands/MigrateRollbackCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         foreach ($this->module->getOrdered($this->option('direction')) as $module) {
50
-            $this->line('Running for module: <info>' . $module->getName() . '</info>');
50
+            $this->line('Running for module: <info>'.$module->getName().'</info>');
51 51
 
52 52
             $this->rollback($module);
53 53
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $migrator = new Migrator($module, $this->getLaravel());
70 70
 
71 71
         $database = $this->option('database');
72
-        if(!$database) {
72
+        if (!$database) {
73 73
             $database = $module->getDatabaseName();
74 74
         }
75 75
 
Please login to merge, or discard this patch.
src/Commands/MigrateFreshCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
 
42 42
         $database = $this->option('database');
43
-        if(!$database) {
43
+        if (!$database) {
44 44
             $database = $module->getDatabaseName();
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Commands/MigrateResetCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         foreach ($this->module->getOrdered($this->option('direction')) as $module) {
50
-            $this->line('Running for module: <info>' . $module->getName() . '</info>');
50
+            $this->line('Running for module: <info>'.$module->getName().'</info>');
51 51
 
52 52
             $this->reset($module);
53 53
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $migrator = new Migrator($module, $this->getLaravel());
70 70
 
71 71
         $database = $this->option('database');
72
-        if(!$database) {
72
+        if (!$database) {
73 73
             $database = $module->getDatabaseName();
74 74
         }
75 75
 
Please login to merge, or discard this patch.
src/Commands/MigrateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
 
51 51
         foreach ($this->module->getOrdered($this->option('direction')) as $module) {
52
-            $this->line('Running for module: <info>' . $module->getName() . '</info>');
52
+            $this->line('Running for module: <info>'.$module->getName().'</info>');
53 53
 
54 54
             $this->migrate($module);
55 55
         }
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
     protected function migrate(Module $module)
66 66
     {
67 67
         $database = $this->option('database');
68
-        if(!$database) {
68
+        if (!$database) {
69 69
             $database = $module->getDatabaseName();
70 70
         }
71 71
 
72 72
         $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath());
73 73
 
74 74
         if ($this->option('subpath')) {
75
-            $path = $path . "/" . $this->option("subpath");
75
+            $path = $path."/".$this->option("subpath");
76 76
         }
77 77
 
78 78
         $this->call('migrate', [
Please login to merge, or discard this patch.
src/Commands/MigrateRefreshCommand.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
         }
40 40
 
41 41
         $database = $this->option('database');
42
-        if(!$database) {
42
+        if (!$database) {
43 43
             $database = $module->getDatabaseName();
44 44
         }
45 45
 
Please login to merge, or discard this patch.