Code Duplication    Length = 7-8 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 170-177 (lines=8) @@
167
168
        // Read rest of Master Block Allocation Table (if any is left)
169
        $pos = $this->_getBlockOffset($mbatFirstBlockId);
170
        for ($i = 0; $i < $mbbatBlockCount; ++$i) {
171
            fseek($fh, $pos);
172
            for ($j = 0; $j < $this->bigBlockSize / 4 - 1; ++$j) {
173
                $mbatBlocks[] = self::_readInt4($fh);
174
            }
175
            // Last block id in each block points to next block
176
            $pos = $this->_getBlockOffset(self::_readInt4($fh));
177
        }
178
179
        // Read Big Block Allocation Table according to chain specified by $mbatBlocks
180
        for ($i = 0; $i < $bbatBlockCount; ++$i) {
@@ 180-186 (lines=7) @@
177
        }
178
179
        // Read Big Block Allocation Table according to chain specified by $mbatBlocks
180
        for ($i = 0; $i < $bbatBlockCount; ++$i) {
181
            $pos = $this->_getBlockOffset($mbatBlocks[$i]);
182
            fseek($fh, $pos);
183
            for ($j = 0; $j < $this->bigBlockSize / 4; ++$j) {
184
                $this->bbat[] = self::_readInt4($fh);
185
            }
186
        }
187
188
        // Read short block allocation table (SBAT)
189
        $this->sbat = [];