Code Duplication    Length = 4-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

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