Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Style/NumberFormat.php 2 locations

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