Code Duplication    Length = 7-8 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 150-157 (lines=8) @@
147
148
        // Read rest of Master Block Allocation Table (if any is left)
149
        $pos = $this->_getBlockOffset($mbatFirstBlockId);
150
        for ($i = 0; $i < $mbbatBlockCount; ++$i) {
151
            fseek($fh, $pos);
152
            for ($j = 0; $j < $this->bigBlockSize / 4 - 1; ++$j) {
153
                $mbatBlocks[] = self::_readInt4($fh);
154
            }
155
            // Last block id in each block points to next block
156
            $pos = $this->_getBlockOffset(self::_readInt4($fh));
157
        }
158
159
        // Read Big Block Allocation Table according to chain specified by
160
        // $mbatBlocks
@@ 161-167 (lines=7) @@
158
159
        // Read Big Block Allocation Table according to chain specified by
160
        // $mbatBlocks
161
        for ($i = 0; $i < $bbatBlockCount; ++$i) {
162
            $pos = $this->_getBlockOffset($mbatBlocks[$i]);
163
            fseek($fh, $pos);
164
            for ($j = 0; $j < $this->bigBlockSize / 4; ++$j) {
165
                $this->bbat[] = self::_readInt4($fh);
166
            }
167
        }
168
169
        // Read short block allocation table (SBAT)
170
        $this->sbat = [];