Code Duplication    Length = 4-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 1025-1028 (lines=4) @@
1022
                            if (isset($this->cellNotes[$obj['idObjID']])) {
1023
                                $cellNote = $this->cellNotes[$obj['idObjID']];
1024
1025
                                if (isset($this->textObjects[$obj['idObjID']])) {
1026
                                    $textObject = $this->textObjects[$obj['idObjID']];
1027
                                    $this->cellNotes[$obj['idObjID']]['objTextData'] = $textObject;
1028
                                }
1029
                            }
1030
                            break;
1031
                        case 0x08:
@@ 1088-1093 (lines=6) @@
1085
            if (!empty($this->cellNotes)) {
1086
                foreach ($this->cellNotes as $note => $noteDetails) {
1087
                    if (!isset($noteDetails['objTextData'])) {
1088
                        if (isset($this->textObjects[$note])) {
1089
                            $textObject = $this->textObjects[$note];
1090
                            $noteDetails['objTextData'] = $textObject;
1091
                        } else {
1092
                            $noteDetails['objTextData']['text'] = '';
1093
                        }
1094
                    }
1095
                    $cellAddress = str_replace('$', '', $noteDetails['cellRef']);
1096
                    $this->phpSheet->getComment($cellAddress)->setAuthor($noteDetails['author'])->setText($this->parseRichText($noteDetails['objTextData']['text']));