Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Ods.php 2 locations

@@ 534-542 (lines=9) @@
531
                                            $dataValue = ($allCellDataText == 'TRUE') ? true : false;
532
533
                                            break;
534
                                        case 'percentage':
535
                                            $type = DataType::TYPE_NUMERIC;
536
                                            $dataValue = (float) $cellData->getAttributeNS($officeNs, 'value');
537
538
                                            if (floor($dataValue) == $dataValue) {
539
                                                $dataValue = (int) $dataValue;
540
                                            }
541
                                            $formatting = NumberFormat::FORMAT_PERCENTAGE_00;
542
543
                                            break;
544
                                        case 'currency':
545
                                            $type = DataType::TYPE_NUMERIC;
@@ 544-552 (lines=9) @@
541
                                            $formatting = NumberFormat::FORMAT_PERCENTAGE_00;
542
543
                                            break;
544
                                        case 'currency':
545
                                            $type = DataType::TYPE_NUMERIC;
546
                                            $dataValue = (float) $cellData->getAttributeNS($officeNs, 'value');
547
548
                                            if (floor($dataValue) == $dataValue) {
549
                                                $dataValue = (int) $dataValue;
550
                                            }
551
                                            $formatting = NumberFormat::FORMAT_CURRENCY_USD_SIMPLE;
552
553
                                            break;
554
                                        case 'float':
555
                                            $type = DataType::TYPE_NUMERIC;