Code Duplication    Length = 8-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 893-900 (lines=8) @@
890
                                                    }
891
                                                }
892
                                                break;
893
                                            case 'inlineStr':
894
                                                if (isset($c->f)) {
895
                                                    $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
896
                                                } else {
897
                                                    $value = $this->parseRichText($c->is);
898
                                                }
899
                                                break;
900
                                            case 'e':
901
                                                if (!isset($c->f)) {
902
                                                    $value = self::castToError($c);
903
                                                } else {
@@ 900-909 (lines=10) @@
897
                                                    $value = $this->parseRichText($c->is);
898
                                                }
899
                                                break;
900
                                            case 'e':
901
                                                if (!isset($c->f)) {
902
                                                    $value = self::castToError($c);
903
                                                } else {
904
                                                    // Formula
905
                                                    $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
906
                                                }
907
                                                break;
908
                                            default:
909
                                                if (!isset($c->f)) {
910
                                                    $value = self::castToString($c);
911
                                                } else {
912
                                                    // Formula