Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed Mar 30, 2022
1 parent 88dcea1 commit ab598e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/Console/Commands/Fix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit ab598e2

Please sign in to comment.