Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and actions-user committed Nov 17, 2020
1 parent 03a8aa1 commit acfb01b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Solutions/MakeViewVariableOptionalSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

Expand Down
2 changes: 0 additions & 2 deletions tests/Solutions/MakeViewVariableOptionalSolutionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit acfb01b

Please sign in to comment.