diff --git a/src/Solutions/MakeViewVariableOptionalSolution.php b/src/Solutions/MakeViewVariableOptionalSolution.php index f33b650d..9a1dd2e0 100644 --- a/src/Solutions/MakeViewVariableOptionalSolution.php +++ b/src/Solutions/MakeViewVariableOptionalSolution.php @@ -73,7 +73,7 @@ public function run(array $parameters = []) public function makeOptional(array $parameters = []) { - if (!$this->isSafePath($parameters['viewFile'])) { + if (! $this->isSafePath($parameters['viewFile'])) { return false; } @@ -94,11 +94,11 @@ public function makeOptional(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; }