Completed
Pull Request — master (#1876)
by
unknown
09:31
created
src/Commands/Actions/EnableCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             ? '<fg=red;options=bold>Disabled</>'
29 29
             : '<fg=green;options=bold>Enabled</>';
30 30
 
31
-        $this->components->task("Enabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function () use ($module) {
31
+        $this->components->task("Enabling <fg=cyan;options=bold>{$module->getName()}</> Module, old status: $status", function() use ($module) {
32 32
             $module->enable();
33 33
         });
34 34
     }
Please login to merge, or discard this patch.
src/Commands/Actions/UnUseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Forget Using <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Forget Using <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
             $this->laravel['modules']->forgetUsed($module);
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/Commands/Actions/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/Actions/ModuleDeleteCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function executeAction($name): void
15 15
     {
16 16
         $module = $this->getModuleModel($name);
17
-        $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
17
+        $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
18 18
             $module->delete();
19 19
         });
20 20
     }
Please login to merge, or discard this patch.
src/Commands/Publish/PublishCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $module = $this->getModuleModel($name);
27 27
 
28
-        $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
28
+        $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
29 29
             with(new AssetPublisher($module))
30 30
                 ->setRepository($this->laravel['modules'])
31 31
                 ->setConsole($this)
Please login to merge, or discard this patch.
src/Commands/Publish/PublishMigrationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $module = $this->getModuleModel($name);
28 28
 
29
-        $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
29
+        $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
30 30
             with(new MigrationPublisher(new Migrator($module, $this->getLaravel())))
31 31
                 ->setRepository($this->laravel['modules'])
32 32
                 ->setConsole($this)
Please login to merge, or discard this patch.
src/Commands/Publish/PublishTranslationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $module = $this->getModuleModel($name);
27 27
 
28
-        $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
28
+        $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
29 29
             with(new LangPublisher($module))
30 30
                 ->setRepository($this->laravel['modules'])
31 31
                 ->setConsole($this)
Please login to merge, or discard this patch.
src/Commands/ComposerUpdateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $module = $this->getModuleModel($name);
26 26
 
27
-        $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
27
+        $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
28 28
 
29 29
             $composer_path = $module->getPath().DIRECTORY_SEPARATOR.'composer.json';
30 30
 
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
 
33 33
             $autoload = data_get($composer, 'autoload.psr-4');
34 34
 
35
-            if (! $autoload) {
35
+            if (!$autoload) {
36 36
                 return;
37 37
             }
38 38
 
39 39
             $key_name_with_app = sprintf('Modules\\%s\\App\\', $module->getStudlyName());
40 40
 
41
-            if (! array_key_exists($key_name_with_app, $autoload)) {
41
+            if (!array_key_exists($key_name_with_app, $autoload)) {
42 42
                 return;
43 43
             }
44 44
 
Please login to merge, or discard this patch.
src/Commands/Make/ModelMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
     {
170 170
         $fillable = $this->option('fillable');
171 171
 
172
-        if (! is_null($fillable)) {
172
+        if (!is_null($fillable)) {
173 173
             $arrays = explode(',', $fillable);
174 174
 
175 175
             return json_encode($arrays);
Please login to merge, or discard this patch.