Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist authored and actions-user committed Mar 8, 2021
1 parent f2dc8ba commit 1a838fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Solutions/MakeViewVariableOptionalSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

Expand Down

0 comments on commit 1a838fd

Please sign in to comment.