Test Failed
Pull Request — master (#11)
by
unknown
01:53
created
src/BCMathExtended/BC.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     }
18 18
 
19 19
     /**
20
-     * @param int|string $number
20
+     * @param string $number
21 21
      * @return string
22 22
      */
23 23
     public static function ceil($number)
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param int|string $number
39
+     * @param string $number
40 40
      * @return bool
41 41
      */
42 42
     private static function checkIsFloat($number)
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @param int|string $number
48
+     * @param string $number
49 49
      * @return bool
50 50
      */
51 51
     private static function checkIsFloatCleanZeros(&$number)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     }
97 97
 
98 98
     /**
99
-     * @param int|string $number
99
+     * @param string $number
100 100
      * @return string
101 101
      */
102 102
     public static function floor($number)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -206,8 +206,7 @@  discard block
 block discarded – undo
206 206
     {
207 207
         $multiply = self::pow(10, (string)abs($precision));
208 208
         return $precision < 0 ?
209
-            self::mul(self::floor(self::div($number, $multiply)), $multiply, $precision) :
210
-            self::div(self::floor(self::mul($number, $multiply)), $multiply, $precision);
209
+            self::mul(self::floor(self::div($number, $multiply)), $multiply, $precision) : self::div(self::floor(self::mul($number, $multiply)), $multiply, $precision);
211 210
     }
212 211
 
213 212
     /**
@@ -219,8 +218,7 @@  discard block
 block discarded – undo
219 218
     {
220 219
         $multiply = self::pow(10, (string)abs($precision));
221 220
         return $precision < 0 ?
222
-            self::mul(self::ceil(self::div($number, $multiply)), $multiply, $precision) :
223
-            self::div(self::ceil(self::mul($number, $multiply)), $multiply, $precision);
221
+            self::mul(self::ceil(self::div($number, $multiply)), $multiply, $precision) : self::div(self::ceil(self::mul($number, $multiply)), $multiply, $precision);
224 222
     }
225 223
 
226 224
     /**
Please login to merge, or discard this patch.