Skip to content

Commit

Permalink
improve some types
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT committed Dec 19, 2024
1 parent f9c88f4 commit 9d6f124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChurchCRM/Service/SystemService.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public static function runTimerJobs(): void

// Returns a file size limit in bytes based on the PHP upload_max_filesize
// and post_max_size
public static function getMaxUploadFileSize($humanFormat = true)
public static function getMaxUploadFileSize(bool $humanFormat = true)
{
//select maximum upload size
$max_upload = SystemService::parseSize(ini_get('upload_max_filesize'));
Expand Down Expand Up @@ -183,7 +183,7 @@ private static function parseSize(string $size): float
}
}

private static function humanFilesize($bytes, $decimals = 2): string
private static function humanFilesize(float $bytes, $decimals = 2): string
{
$size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
$factor = floor((strlen($bytes) - 1) / 3);
Expand Down

0 comments on commit 9d6f124

Please sign in to comment.