diff --git a/src/MediaCollections/FileAdderFactory.php b/src/MediaCollections/FileAdderFactory.php index 164780c9e..bb3e705f0 100644 --- a/src/MediaCollections/FileAdderFactory.php +++ b/src/MediaCollections/FileAdderFactory.php @@ -40,7 +40,7 @@ public static function createMultipleFromRequest(Model $subject, array $keys = [ { return collect($keys) ->map(function (string $key) use ($subject) { - $key = trim(basename($key), './'); + $key = trim(basename($key), './'); if (! request()->hasFile($key)) { throw RequestDoesNotHaveFile::create($key); diff --git a/src/Support/File.php b/src/Support/File.php index ff8e93858..acdf09cef 100644 --- a/src/Support/File.php +++ b/src/Support/File.php @@ -12,7 +12,7 @@ public static function getHumanReadableSize(int|float $sizeInBytes): string $index = min(count($units) - 1, floor(log(abs($sizeInBytes), 1024))); - return sprintf("%s %s", round(num: abs($sizeInBytes) / (1024 ** $index), precision: 2), $units[$index]); + return sprintf('%s %s', round(num: abs($sizeInBytes) / (1024 ** $index), precision: 2), $units[$index]); } public static function getMimeType(string $path): string