mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #1587 from kimegede/cakenumber-docblock-update
Added @link to CakeNumber's docblock
This commit is contained in:
commit
f91eb3b508
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue