mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-18 06:11:48 +08:00
GH#36 Changed compare_float() from public to private
This commit is contained in:
parent
d28a0fba2f
commit
806ea09778
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class Command {
|
|||
* @param double $a Floating number.
|
||||
* @param double $b Floating number.
|
||||
*/
|
||||
public function compare_float( $a, $b ) {
|
||||
private function compare_float( $a, $b ) {
|
||||
if ( abs( $a - $b ) < 0.00000001 ) {
|
||||
return 0;
|
||||
} elseif ( ( $a - $b ) < 0 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue