Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 393-399 (lines=7) @@
390
     *
391
     * @return bool true if it's a File PPS, false otherwise
392
     */
393
    public function isFile($index)
394
    {
395
        if (isset($this->_list[$index])) {
396
            return $this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE;
397
        }
398
399
        return false;
400
    }
401
402
    /**
@@ 410-416 (lines=7) @@
407
     *
408
     * @return bool true if it's a Root PPS, false otherwise
409
     */
410
    public function isRoot($index)
411
    {
412
        if (isset($this->_list[$index])) {
413
            return $this->_list[$index]->Type == self::OLE_PPS_TYPE_ROOT;
414
        }
415
416
        return false;
417
    }
418
419
    /**