@@ -43,10 +43,12 @@ |
||
| 43 | 43 | |
| 44 | 44 | public static function generaFormato($valor = 0, $simbolo = 'BsF', $decimal = 2) |
| 45 | 45 | { |
| 46 | - if (!is_numeric($valor)) |
|
| 47 | - throw new Exception("{$valor} debe indicar un número que sea válido"); |
|
| 48 | - if (!is_int($decimal)) |
|
| 49 | - throw new Exception("El valor {$decimal} no es válido"); |
|
| 46 | + if (!is_numeric($valor)) { |
|
| 47 | + throw new Exception("{$valor} debe indicar un número que sea válido"); |
|
| 48 | + } |
|
| 49 | + if (!is_int($decimal)) { |
|
| 50 | + throw new Exception("El valor {$decimal} no es válido"); |
|
| 51 | + } |
|
| 50 | 52 | |
| 51 | 53 | return $simbolo . ' ' . number_format($valor, $decimal, '.', ''); |
| 52 | 54 | } |
@@ -36,9 +36,6 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Returns the user's gravatar url. |
| 38 | 38 | * @param string $email The email address |
| 39 | - * @param string $imageset Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
|
| 40 | - * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ] |
|
| 41 | - * @param boole $img True to return a complete IMG tag False for just the URL |
|
| 42 | 39 | * @param array $options Optional, additional key/value attributes to include |
| 43 | 40 | * @return string Link to the user's gravatar image. |
| 44 | 41 | */ |