Code Duplication    Length = 8-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 925-932 (lines=8) @@
922
                                                    }
923
                                                }
924
                                                break;
925
                                            case 'inlineStr':
926
                                                if (isset($c->f)) {
927
                                                    $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
928
                                                } else {
929
                                                    $value = $this->parseRichText($c->is);
930
                                                }
931
                                                break;
932
                                            case 'e':
933
                                                if (!isset($c->f)) {
934
                                                    $value = self::castToError($c);
935
                                                } else {
@@ 932-941 (lines=10) @@
929
                                                    $value = $this->parseRichText($c->is);
930
                                                }
931
                                                break;
932
                                            case 'e':
933
                                                if (!isset($c->f)) {
934
                                                    $value = self::castToError($c);
935
                                                } else {
936
                                                    // Formula
937
                                                    $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
938
                                                }
939
                                                break;
940
                                            default:
941
                                                if (!isset($c->f)) {
942
                                                    $value = self::castToString($c);
943
                                                } else {
944
                                                    // Formula