Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Feb 16, 2024
1 parent 81876c3 commit f6ec020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MediaCollections/FileAdderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Support/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6ec020

Please sign in to comment.