Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Style/NumberFormat.php 2 locations

@@ 630-635 (lines=6) @@
627
                $format = ($value >= 0) ? $sections[0] : $sections[1];
628
                $value = abs($value); // Use the absolute value
629
                break;
630
            case 3:
631
                $format = ($value > 0) ?
632
                    $sections[0] : (($value < 0) ?
633
                        $sections[1] : $sections[2]);
634
                $value = abs($value); // Use the absolute value
635
                break;
636
            case 4:
637
                $format = ($value > 0) ?
638
                    $sections[0] : (($value < 0) ?
@@ 636-641 (lines=6) @@
633
                        $sections[1] : $sections[2]);
634
                $value = abs($value); // Use the absolute value
635
                break;
636
            case 4:
637
                $format = ($value > 0) ?
638
                    $sections[0] : (($value < 0) ?
639
                        $sections[1] : $sections[2]);
640
                $value = abs($value); // Use the absolute value
641
                break;
642
            default:
643
                // something is wrong, just use first section
644
                $format = $sections[0];