Test Failed
Pull Request — master (#40)
by Dorian
02:37
created
src/BCMathExtended/BC.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
     protected static function parseNumber(string $number): string
186 186
     {
187
-        $number = str_replace('+', '', (string) filter_var($number, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION));
187
+        $number = str_replace('+', '', (string)filter_var($number, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION));
188 188
         if ('-0' === $number || !is_numeric($number)) {
189 189
             return '0';
190 190
         }
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 
458 458
     public static function hexdec(?string $hex): string
459 459
     {
460
-        $hex = (string) $hex;
460
+        $hex = (string)$hex;
461 461
         $remainingDigits = substr($hex, 0, -1);
462 462
         $lastDigitToDecimal = (string)hexdec(substr($hex, -1));
463 463
 
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
     {
544 544
         return static::decBaseHelper(
545 545
             $base,
546
-            static function (int $base) use ($number) {
546
+            static function(int $base) use ($number) {
547 547
                 $value = '';
548 548
                 if ('0' === $number) {
549 549
                     return chr((int)$number);
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 
578 578
     public static function setScale(?int $scale): void
579 579
     {
580
-        bcscale((int) $scale);
580
+        bcscale((int)$scale);
581 581
     }
582 582
 
583 583
     public static function abs(?string $number): string
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     {
616 616
         return static::decBaseHelper(
617 617
             $base,
618
-            static function (int $base) use ($binary) {
618
+            static function(int $base) use ($binary) {
619 619
                 $size = strlen($binary);
620 620
                 $return = '0';
621 621
                 for ($i = 0; $i < $size; ++$i) {
Please login to merge, or discard this patch.