Skip to content

Commit 74059a5

Browse files
committed
Remove inconsistent infix from internal helper methods
1 parent bbe66f4 commit 74059a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/framework/src/Support/Filesystem/MediaFile.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)