@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace ReneDeKat\LaravelViewFileFinder; |
| 4 | 4 | |
| 5 | -use InvalidArgumentException; |
|
| 6 | 5 | use Illuminate\Filesystem\Filesystem; |
| 7 | 6 | use Illuminate\View\ViewFinderInterface; |
| 7 | +use InvalidArgumentException; |
|
| 8 | 8 | |
| 9 | 9 | class FileViewFinder implements ViewFinderInterface |
| 10 | 10 | { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | throw new InvalidArgumentException("View [$name] has an invalid name."); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | - if (! isset($this->hints[$segments[0]])) { |
|
| 112 | + if (!isset($this->hints[$segments[0]])) { |
|
| 113 | 113 | throw new InvalidArgumentException("No hint path defined for [{$segments[0]}]."); |
| 114 | 114 | } |
| 115 | 115 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - if (! isset($path)) { |
|
| 138 | + if (!isset($path)) { |
|
| 139 | 139 | throw new InvalidArgumentException("View [$name] not found."); |
| 140 | 140 | } |
| 141 | 141 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | protected function getPossibleViewFiles($name) |
| 152 | 152 | { |
| 153 | - return array_map(function ($extension) use ($name) { |
|
| 153 | + return array_map(function($extension) use ($name) { |
|
| 154 | 154 | return str_replace('.', '/', $name).'.'.$extension; |
| 155 | 155 | }, $this->extensions); |
| 156 | 156 | } |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | $viewFilename = "{$path}{$fsName}.blade.php"; |
| 292 | 292 | $viewFileDirectory = dirname($viewFilename); |
| 293 | 293 | |
| 294 | - if (! file_exists($viewFileDirectory)) { |
|
| 294 | + if (!file_exists($viewFileDirectory)) { |
|
| 295 | 295 | mkdir($viewFileDirectory, 0755, true); |
| 296 | 296 | } |
| 297 | 297 | |