X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FEnglishNumber.php;h=65f21390af80e2d3697f8d863f2707348d0dd595;hb=f17ea5d9ab05d5c41d9d9dd1a30d73fcef0e4938;hp=5854421836b41c8e5d68bbcc5fad3f3e08cdc71b;hpb=1c5bc02c1bbfc3cbbee279e61b488787a4c41daf;p=civicrm-core.git diff --git a/CRM/Utils/EnglishNumber.php b/CRM/Utils/EnglishNumber.php index 5854421836..65f21390af 100644 --- a/CRM/Utils/EnglishNumber.php +++ b/CRM/Utils/EnglishNumber.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2017 + * @copyright CiviCRM LLC (c) 2004-2020 * $Id$ * * Utilities for rendering numbers as English. @@ -38,7 +38,7 @@ */ class CRM_Utils_EnglishNumber { - protected static $lowNumbers = array( + protected static $lowNumbers = [ 'Zero', 'One', 'Two', @@ -59,9 +59,9 @@ class CRM_Utils_EnglishNumber { 'Seventeen', 'Eighteen', 'Nineteen', - ); + ]; - protected static $intervalsOfTen = array( + protected static $intervalsOfTen = [ 9 => 'Ninety', 8 => 'Eighty', 7 => 'Seventy', @@ -70,7 +70,7 @@ class CRM_Utils_EnglishNumber { 4 => 'Forty', 3 => 'Thirty', 2 => 'Twenty', - ); + ]; /** * @param int $num