|
@@ -69,11 +69,11 @@ |
|
|
block discarded – undo |
|
69
|
69
|
*/ |
|
70
|
70
|
public static function getSourceFileListForModel(string $model): array |
|
71
|
71
|
{ |
|
72
|
|
- if (! class_exists($model) || ! is_subclass_of($model, HydePage::class)) { |
|
|
72
|
+ if (!class_exists($model) || !is_subclass_of($model, HydePage::class)) { |
|
73
|
73
|
throw new UnsupportedPageTypeException($model); |
|
74
|
74
|
} |
|
75
|
75
|
|
|
76
|
|
- return Hyde::files()->getSourceFiles($model)->flatten()->map(function (File $file) use ($model): string { |
|
|
76
|
+ return Hyde::files()->getSourceFiles($model)->flatten()->map(function(File $file) use ($model): string { |
|
77
|
77
|
return static::pathToIdentifier($model, $file->withoutDirectoryPrefix()); |
|
78
|
78
|
})->toArray(); |
|
79
|
79
|
} |
Please login to merge, or discard this patch.