Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Style/NumberFormat.php 2 locations

@@ 610-615 (lines=6) @@
607
                $format = ($value >= 0) ? $sections[0] : $sections[1];
608
                $value = abs($value); // Use the absolute value
609
                break;
610
            case 3:
611
                $format = ($value > 0) ?
612
                    $sections[0] : (($value < 0) ?
613
                        $sections[1] : $sections[2]);
614
                $value = abs($value); // Use the absolute value
615
                break;
616
            case 4:
617
                $format = ($value > 0) ?
618
                    $sections[0] : (($value < 0) ?
@@ 616-621 (lines=6) @@
613
                        $sections[1] : $sections[2]);
614
                $value = abs($value); // Use the absolute value
615
                break;
616
            case 4:
617
                $format = ($value > 0) ?
618
                    $sections[0] : (($value < 0) ?
619
                        $sections[1] : $sections[2]);
620
                $value = abs($value); // Use the absolute value
621
                break;
622
            default:
623
                // something is wrong, just use first section
624
                $format = $sections[0];