Skip to content

Commit

Permalink
Inline simplified helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 27, 2024
1 parent 97718a5 commit 0bd90cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/framework/src/Facades/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,11 @@ public static function get(string $file): string

public static function mediaLink(string $file): string
{
return Hyde::mediaLink($file).static::getCacheBustKey($file);
return Hyde::mediaLink($file).MediaFile::getCacheBustKey($file);
}

public static function hasMediaFile(string $file): bool
{
return file_exists(MediaFile::sourcePath($file));
}

protected static function getCacheBustKey(string $file): string
{
return MediaFile::getCacheBustKey($file);
}
}

0 comments on commit 0bd90cb

Please sign in to comment.