Code Duplication    Length = 4-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 1031-1034 (lines=4) @@
1028
                            if (isset($this->cellNotes[$obj['idObjID']])) {
1029
                                $cellNote = $this->cellNotes[$obj['idObjID']];
1030
1031
                                if (isset($this->textObjects[$obj['idObjID']])) {
1032
                                    $textObject = $this->textObjects[$obj['idObjID']];
1033
                                    $this->cellNotes[$obj['idObjID']]['objTextData'] = $textObject;
1034
                                }
1035
                            }
1036
                            break;
1037
                        case 0x08:
@@ 1095-1100 (lines=6) @@
1092
            if (!empty($this->cellNotes)) {
1093
                foreach ($this->cellNotes as $note => $noteDetails) {
1094
                    if (!isset($noteDetails['objTextData'])) {
1095
                        if (isset($this->textObjects[$note])) {
1096
                            $textObject = $this->textObjects[$note];
1097
                            $noteDetails['objTextData'] = $textObject;
1098
                        } else {
1099
                            $noteDetails['objTextData']['text'] = '';
1100
                        }
1101
                    }
1102
//                    echo '<b>Cell annotation ', $note,'</b><br />';
1103
//                    var_dump($noteDetails);