@@ -36,12 +36,12 @@ |
||
36 | 36 | */ |
37 | 37 | public static function getSourceFileListForModel(string $model): array |
38 | 38 | { |
39 | - if (! class_exists($model) || ! is_subclass_of($model, AbstractPage::class)) { |
|
39 | + if (!class_exists($model) || !is_subclass_of($model, AbstractPage::class)) { |
|
40 | 40 | throw new UnsupportedPageTypeException($model); |
41 | 41 | } |
42 | 42 | |
43 | 43 | $files = []; |
44 | - Hyde::files()->getSourceFiles($model)->each(function (File $file) use (&$files, $model) { |
|
44 | + Hyde::files()->getSourceFiles($model)->each(function(File $file) use (&$files, $model) { |
|
45 | 45 | $files[] = self::formatSlugForModel($model, $file->withoutDirectoryPrefix()); |
46 | 46 | }); |
47 | 47 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | use Hyde\Framework\HydeKernel; |
4 | 4 | use Illuminate\Contracts\Support\Arrayable; |
5 | 5 | |
6 | -if (! function_exists('hyde')) { |
|
6 | +if (!function_exists('hyde')) { |
|
7 | 7 | /** |
8 | 8 | * Get the available HydeKernel instance. |
9 | 9 | * |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | } |
16 | 16 | } |
17 | 17 | |
18 | -if (! function_exists('unslash')) { |
|
18 | +if (!function_exists('unslash')) { |
|
19 | 19 | /** |
20 | 20 | * Remove trailing slashes from the start and end of a string. |
21 | 21 | * |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | -if (! function_exists('array_map_unique')) { |
|
31 | +if (!function_exists('array_map_unique')) { |
|
32 | 32 | /** |
33 | 33 | * Map a callback over an array and remove duplicates. |
34 | 34 | * |