File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/framework/src/Support/Filesystem Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class MediaFile extends ProjectFile
3434 /** @return array<string, \Hyde\Support\Filesystem\MediaFile> The array keys are the filenames relative to the _media/ directory */
3535 public static function all (): array
3636 {
37- return static ::discoverMediaAssetFiles ();
37+ return static ::discoverMediaFiles ();
3838 }
3939
4040 /** @return array<string> Array of filenames relative to the _media/ directory */
@@ -123,16 +123,16 @@ public function getMimeType(): string
123123 return 'text/plain ' ;
124124 }
125125
126- protected static function discoverMediaAssetFiles (): array
126+ protected static function discoverMediaFiles (): array
127127 {
128- return collect (static ::getMediaAssetFiles ())->mapWithKeys (function (string $ path ): array {
128+ return collect (static ::getMediaFiles ())->mapWithKeys (function (string $ path ): array {
129129 $ file = static ::make ($ path );
130130
131131 return [$ file ->getIdentifier () => $ file ];
132132 })->all ();
133133 }
134134
135- protected static function getMediaAssetFiles (): array
135+ protected static function getMediaFiles (): array
136136 {
137137 return glob (Hyde::path (static ::getMediaGlobPattern ()), GLOB_BRACE ) ?: [];
138138 }
You can’t perform that action at this time.
0 commit comments