Skip to content

Commit

Permalink
Merge branch '2.x' of github.com:fresns/plugin-manager into 2.x
Browse files Browse the repository at this point in the history
* '2.x' of github.com:fresns/plugin-manager:
  Apply fixes from StyleCI
  • Loading branch information
jevantang committed Nov 26, 2022
2 parents 72e4f77 + 2b44edc commit a918182
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Commands/PluginComposerUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PluginInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PluginUninstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a918182

Please sign in to comment.