Completed
Push — master ( 121c59...3d94bf )
by angel
02:25
created
src/Money.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
      * @throws Exception
41 41
      */
42 42
 
43
-    public static function generaFormato($valor = 0,  $options = [])
43
+    public static function generaFormato($valor = 0, $options = [ ])
44 44
     {
45 45
 
46
-        $simbolo  = isset($options['s']) ? $options['s'] : 'BsF';
47
-        $decimal  = isset($options['d']) ? $options['d'] : 2;  
46
+        $simbolo  = isset($options[ 's' ]) ? $options[ 's' ] : 'BsF';
47
+        $decimal  = isset($options[ 'd' ]) ? $options[ 'd' ] : 2;  
48 48
         
49 49
         if (!is_numeric($valor))
50 50
             throw new Exception("{$valor} debe indicar un número que sea válido");
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
      * @param array $options additional key/value attributes to include
61 61
      * @return float
62 62
      */
63
-    public static function quitarFormato($str, $options = [])
63
+    public static function quitarFormato($str, $options = [ ])
64 64
     {
65
-        $simbolo  = isset($options['s']) ? $options['s'] : 'BsF';
66
-        $decimal  = isset($options['d']) ? $options['d'] : 2;
65
+        $simbolo  = isset($options[ 's' ]) ? $options[ 's' ] : 'BsF';
66
+        $decimal  = isset($options[ 'd' ]) ? $options[ 'd' ] : 2;
67 67
         
68 68
         return number_format(str_replace($simbolo, '', $str), $decimal, '.', '');
69 69
     }
Please login to merge, or discard this patch.