File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33namespace Backpack \CRUD \app \Console \Commands ;
44
55use Illuminate \Console \Command ;
6- use Symfony \Component \Process \Exception \ProcessFailedException ;
7- use Symfony \Component \Process \Process ;
86
97class Fix extends Command
108{
@@ -39,8 +37,9 @@ private function fixErrorViews()
3937 $ this ->line ('Checking error views... ' );
4038
4139 // check if the `resources/views/errors` directory exists
42- if (!is_dir ($ errorsDirectory )) {
40+ if (! is_dir ($ errorsDirectory )) {
4341 $ this ->info ('Your error views are not vulnerable. Nothing to do here. ' );
42+
4443 return ;
4544 }
4645
@@ -51,8 +50,9 @@ private function fixErrorViews()
5150 });
5251
5352 // check if there are actually views inside the directory
54- if (!count ($ views )) {
53+ if (! count ($ views )) {
5554 $ this ->info ('Your error views are not vulnerable. Nothing to do here. ' );
55+
5656 return ;
5757 }
5858
You can’t perform that action at this time.
0 commit comments