From ab598e2e1d066062c6d3be0f23afaf1f348636ae Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 30 Mar 2022 07:20:51 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/app/Console/Commands/Fix.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/Console/Commands/Fix.php b/src/app/Console/Commands/Fix.php index a9b696064c..de72c3943c 100644 --- a/src/app/Console/Commands/Fix.php +++ b/src/app/Console/Commands/Fix.php @@ -3,8 +3,6 @@ namespace Backpack\CRUD\app\Console\Commands; use Illuminate\Console\Command; -use Symfony\Component\Process\Exception\ProcessFailedException; -use Symfony\Component\Process\Process; class Fix extends Command { @@ -39,8 +37,9 @@ private function fixErrorViews() $this->line('Checking error views...'); // check if the `resources/views/errors` directory exists - if (!is_dir($errorsDirectory)) { + if (! is_dir($errorsDirectory)) { $this->info('Your error views are not vulnerable. Nothing to do here.'); + return; } @@ -51,8 +50,9 @@ private function fixErrorViews() }); // check if there are actually views inside the directory - if (!count($views)) { + if (! count($views)) { $this->info('Your error views are not vulnerable. Nothing to do here.'); + return; }