Code Duplication    Length = 8-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 907-914 (lines=8) @@
904
                                                    }
905
                                                }
906
                                                break;
907
                                            case 'inlineStr':
908
                                                if (isset($c->f)) {
909
                                                    $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
910
                                                } else {
911
                                                    $value = $this->parseRichText($c->is);
912
                                                }
913
                                                break;
914
                                            case 'e':
915
                                                if (!isset($c->f)) {
916
                                                    $value = self::castToError($c);
917
                                                } else {
@@ 914-923 (lines=10) @@
911
                                                    $value = $this->parseRichText($c->is);
912
                                                }
913
                                                break;
914
                                            case 'e':
915
                                                if (!isset($c->f)) {
916
                                                    $value = self::castToError($c);
917
                                                } else {
918
                                                    // Formula
919
                                                    $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
920
                                                }
921
                                                break;
922
                                            default:
923
                                                if (!isset($c->f)) {
924
                                                    $value = self::castToString($c);
925
                                                } else {
926
                                                    // Formula