From acfb01bbe98efc3c7e02b1e46eb29806173dbb22 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Tue, 17 Nov 2020 09:18:39 +0000 Subject: [PATCH] Fix styling --- src/Solutions/MakeViewVariableOptionalSolution.php | 6 +++--- tests/Solutions/MakeViewVariableOptionalSolutionTest.php | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Solutions/MakeViewVariableOptionalSolution.php b/src/Solutions/MakeViewVariableOptionalSolution.php index 3a685d0b..d9e815ee 100644 --- a/src/Solutions/MakeViewVariableOptionalSolution.php +++ b/src/Solutions/MakeViewVariableOptionalSolution.php @@ -73,10 +73,10 @@ public function run(array $parameters = []) protected function isSafePath(string $path): bool { - if (!Str::startsWith($path, ['/', './'])) { + if (! Str::startsWith($path, ['/', './'])) { return false; } - if (!Str::endsWith($path, '.blade.php')) { + if (! Str::endsWith($path, '.blade.php')) { return false; } @@ -85,7 +85,7 @@ protected function isSafePath(string $path): bool public function makeOptional(array $parameters = []) { - if (!$this->isSafePath($parameters['viewFile'])) { + if (! $this->isSafePath($parameters['viewFile'])) { return false; } diff --git a/tests/Solutions/MakeViewVariableOptionalSolutionTest.php b/tests/Solutions/MakeViewVariableOptionalSolutionTest.php index 9c28023e..6561dd15 100644 --- a/tests/Solutions/MakeViewVariableOptionalSolutionTest.php +++ b/tests/Solutions/MakeViewVariableOptionalSolutionTest.php @@ -2,12 +2,10 @@ namespace Facade\Ignition\Tests\Solutions; -use Facade\Ignition\Exceptions\ViewException; use Facade\Ignition\Solutions\MakeViewVariableOptionalSolution; use Facade\Ignition\Support\ComposerClassMap; use Facade\Ignition\Tests\TestCase; use Illuminate\Support\Facades\View; -use Illuminate\Support\Str; class MakeViewVariableOptionalSolutionTest extends TestCase {