[web-php] master: Remove arguments identical to default values of parameters

From: Date: Tue, 28 Jun 2022 16:57:02 +0000
Subject: [web-php] master: Remove arguments identical to default values of parameters
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30183@lists.php.net to get a copy of this message
Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: cmb69 Date: 2022-06-28T18:51:03+02:00 Commit: https://github.com/php/web-php/commit/c73856319cf0f1f7ca75b08e12986f79ea42de2b Raw diff: https://github.com/php/web-php/commit/c73856319cf0f1f7ca75b08e12986f79ea42de2b.diff Remove arguments identical to default values of parameters Closes GH-583. Changed paths: M include/layout.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index 409f475a8..6561838da 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -220,9 +220,9 @@ function download_link($file, $title) if ($size) { echo ' ['; if ($size < 1024) { - echo number_format($size, 0, '.', ',') . 'b'; + echo number_format($size) . 'b'; } else { - echo number_format($size/1024, 0, '.', ',') . 'Kb'; + echo number_format($size/1024) . 'Kb'; } echo ']'; }

« previous php.webmaster (#30183) next »