Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 2 locations

@@ 264-266 (lines=3) @@
261
                if (($raList[$i]->Size >= \PhpSpreadsheet\Shared\OLE::OLE_DATA_SIZE_SMALL) || (($raList[$i]->Type == \PhpSpreadsheet\Shared\OLE::OLE_PPS_TYPE_ROOT) && isset($raList[$i]->_data))) {
262
                    fwrite($FILE, $raList[$i]->_data);
263
264
                    if ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) {
265
                        fwrite($FILE, str_repeat("\x00", $this->_BIG_BLOCK_SIZE - ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)));
266
                    }
267
                    // Set For PPS
268
                    $raList[$i]->startBlock = $iStBlk;
269
                    $iStBlk +=
@@ 307-309 (lines=3) @@
304
305
                    // Add to Data String(this will be written for RootEntry)
306
                    $sRes .= $raList[$i]->_data;
307
                    if ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) {
308
                        $sRes .= str_repeat("\x00", $this->_SMALL_BLOCK_SIZE - ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE));
309
                    }
310
                    // Set for PPS
311
                    $raList[$i]->startBlock = $iSmBlk;
312
                    $iSmBlk += $iSmbCnt;