Code Duplication    Length = 8-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2007.php 2 locations

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