Merge pull request #1587 from kimegede/cakenumber-docblock-update

Added @link to CakeNumber's docblock
This commit is contained in:
José Lorenzo Rodríguez 2013-08-31 17:41:45 -07:00
commit f91eb3b508

View file

@ -135,6 +135,7 @@ class CakeNumber {
* @param mixed $default Value to be returned when invalid size was used, for example 'Unknown type'
* @return mixed Number of bytes as integer on success, `$default` on failure if not false
* @throws CakeException On invalid Unit type.
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::fromReadableSize
*/
public static function fromReadableSize($size, $default = false) {
if (ctype_digit($size)) {
@ -246,6 +247,7 @@ class CakeNumber {
* @param float $value A floating point number
* @param array $options
* @return string formatted delta
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::formatDelta
*/
public static function formatDelta($value, $options = array()) {
$places = isset($options['places']) ? $options['places'] : 0;
@ -404,6 +406,7 @@ class CakeNumber {
*
* @param string $currency Default currency string used by currency() if $currency argument is not provided
* @return string Currency
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::defaultCurrency
*/
public static function defaultCurrency($currency = null) {
if ($currency) {