From 2b44edc2a8622ebec82a348291b4b639d161b1de Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 26 Nov 2022 18:21:02 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Commands/PluginComposerUpdateCommand.php | 4 ++-- src/Commands/PluginInstallCommand.php | 2 +- src/Commands/PluginUninstallCommand.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Commands/PluginComposerUpdateCommand.php b/src/Commands/PluginComposerUpdateCommand.php index 9fe8375..24edf7f 100644 --- a/src/Commands/PluginComposerUpdateCommand.php +++ b/src/Commands/PluginComposerUpdateCommand.php @@ -8,8 +8,8 @@ namespace Fresns\PluginManager\Commands; -use Illuminate\Console\Command; use Fresns\PluginManager\Support\Process; +use Illuminate\Console\Command; class PluginComposerUpdateCommand extends Command { @@ -20,7 +20,7 @@ class PluginComposerUpdateCommand extends Command public function handle() { $process = Process::run('composer update', $this->output); - if (!$process->isSuccessful()) { + if (! $process->isSuccessful()) { $this->error('Failed to install packages, calc composer.json hash value fail'); return Command::FAILURE; diff --git a/src/Commands/PluginInstallCommand.php b/src/Commands/PluginInstallCommand.php index c1edf7a..56cceb8 100644 --- a/src/Commands/PluginInstallCommand.php +++ b/src/Commands/PluginInstallCommand.php @@ -69,7 +69,7 @@ public function handle() if (count($require) || count($requireDev)) { $exitCode = $this->call('plugin:composer-update'); if ($exitCode) { - $this->error("Failed to update plugin dependency"); + $this->error('Failed to update plugin dependency'); return Command::FAILURE; } diff --git a/src/Commands/PluginUninstallCommand.php b/src/Commands/PluginUninstallCommand.php index f98f19a..04757da 100644 --- a/src/Commands/PluginUninstallCommand.php +++ b/src/Commands/PluginUninstallCommand.php @@ -60,7 +60,7 @@ public function handle() if (count($require) || count($requireDev)) { $exitCode = $this->call('plugin:composer-update'); if ($exitCode) { - $this->error("Failed to update plugin dependency"); + $this->error('Failed to update plugin dependency'); return Command::FAILURE; }