Code Duplication    Length = 8-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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