Skip to content

Commit

Permalink
also adjust helper
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 9, 2014
1 parent 2b5c5b9 commit 5700864
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Utility/Number.php
Expand Up @@ -199,7 +199,7 @@ public static function toPercentage($value, $precision = 2, array $options = arr
*
* @param float $value A floating point number.
* @param array $options An array with options.
* @return string formatted number
* @return string Formatted number
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::format
*/
public static function format($value, array $options = []) {
Expand Down
9 changes: 4 additions & 5 deletions src/View/Helper/NumberHelper.php
Expand Up @@ -133,13 +133,12 @@ public function toPercentage($number, $precision = 2, array $options = array())
*
* @see \Cake\Utility\Number::format()
*
* @param float $number A floating point number
* @param mixed $options If integer then places, if string then before, if (,.-) then use it
* or array with places and before keys
* @return string formatted number
* @param float $number A floating point number.
* @param array $options Array of options.
* @return string Formatted number
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::format
*/
public function format($number, $options = false) {
public function format($number, array $options = []) {
return $this->_engine->format($number, $options);
}

Expand Down

0 comments on commit 5700864

Please sign in to comment.