Completed
Push — master ( 3331bf...96fe4f )
by
unknown
14s queued 12s
created
src/Commands/MigrateFreshCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $module = $this->argument('module');
34 34
 
35
-        if ($module && ! $this->getModuleName()) {
35
+        if ($module && !$this->getModuleName()) {
36 36
             $this->error("Module [$module] does not exists.");
37 37
 
38 38
             return E_ERROR;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $module = $this->argument('module');
82 82
 
83
-        if (! $module) {
83
+        if (!$module) {
84 84
             return null;
85 85
         }
86 86
 
Please login to merge, or discard this patch.
src/Commands/EventMakeCommand.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
     public function getDestinationFilePath()
42 42
     {
43
-        $path       = $this->laravel['modules']->getModulePath($this->getModuleName());
43
+        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
44 44
 
45 45
         $eventPath = GenerateConfigReader::read('event');
46 46
 
Please login to merge, or discard this patch.
src/Commands/UseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $module = Str::studly($this->argument('module'));
31 31
 
32
-        if (! $this->laravel['modules']->has($module)) {
32
+        if (!$this->laravel['modules']->has($module)) {
33 33
             $this->error("Module [{$module}] does not exists.");
34 34
 
35 35
             return E_ERROR;
Please login to merge, or discard this patch.
src/Commands/GeneratorCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $path = str_replace('\\', '/', $this->getDestinationFilePath());
38 38
 
39
-        if (! $this->laravel['files']->isDirectory($dir = dirname($path))) {
39
+        if (!$this->laravel['files']->isDirectory($dir = dirname($path))) {
40 40
             $this->laravel['files']->makeDirectory($dir, 0777, true);
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Commands/InstallCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function installFromFile() : int
58 58
     {
59
-        if (! file_exists($path = base_path('modules.json'))) {
59
+        if (!file_exists($path = base_path('modules.json'))) {
60 60
             $this->error("File 'modules.json' does not exist in your project root.");
61 61
 
62 62
             return E_ERROR;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $installer->run();
112 112
 
113
-        if (! $this->option('no-update')) {
113
+        if (!$this->option('no-update')) {
114 114
             $this->call('module:update', [
115 115
                 'module' => $installer->getModuleName(),
116 116
             ]);
Please login to merge, or discard this patch.
src/Commands/SeedCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     public function getModuleRepository(): RepositoryInterface
70 70
     {
71 71
         $modules = $this->laravel['modules'];
72
-        if (! $modules instanceof RepositoryInterface) {
72
+        if (!$modules instanceof RepositoryInterface) {
73 73
             throw new RuntimeException('Module repository not found!');
74 74
         }
75 75
 
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
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $name = $this->argument('module');
42 42
 
43
-        if (! empty($name)) {
43
+        if (!empty($name)) {
44 44
             $this->reset($name);
45 45
 
46 46
             return 0;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $database = $this->option('database');
72 72
 
73
-        if (! empty($database)) {
73
+        if (!empty($database)) {
74 74
             $migrator->setDatabase($database);
75 75
         }
76 76
 
Please login to merge, or discard this patch.
src/Laravel/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         // This checks if we are running on a Laravel Vapor managed instance
19 19
         // and sets the path to a writable one (services path is not on a writable storage in Vapor).
20
-        if (! is_null(env('VAPOR_MAINTENANCE_MODE', null))) {
20
+        if (!is_null(env('VAPOR_MAINTENANCE_MODE', null))) {
21 21
             return Str::replaceLast('config.php', $this->getSnakeNamespace().'_module.php', $this->app->getCachedConfigPath());
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
             return $attributes;
131 131
         }
132 132
 
133
-        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () use ($attributes) {
133
+        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function() use ($attributes) {
134 134
             return $attributes;
135 135
         });
136 136
     }
Please login to merge, or discard this patch.