From a7ef82fd69454fdad6925273b87f499ddbaeef45 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 13 Jun 2017 20:07:29 +0100 Subject: [PATCH] Changed default value for thousandsSeparator --- src/View/Helper/AmountHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Helper/AmountHelper.php b/src/View/Helper/AmountHelper.php index fffa9b8..709e200 100644 --- a/src/View/Helper/AmountHelper.php +++ b/src/View/Helper/AmountHelper.php @@ -5,7 +5,7 @@ namespace App\View\Helper; use Cake\View\Helper; class AmountHelper extends Helper { - public function format($value, $thousandsSeparator = '') { + public function format($value, $thousandsSeparator = ',') { $value = number_format($value, 8, '.', $thousandsSeparator); $dotIdx = strpos($value, '.'); if ($dotIdx !== false) { @@ -21,7 +21,7 @@ class AmountHelper extends Helper { return $value; } - public function formatCurrency($value, $thousandsSeparator = '') { + public function formatCurrency($value, $thousandsSeparator = ',') { $dotIdx = strpos($value, '.'); if ($dotIdx !== false) { $left = substr($value, 0, $dotIdx);