Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 380-386 (lines=7) @@
377
     *
378
     * @return bool true if it's a File PPS, false otherwise
379
     */
380
    public function isFile($index)
381
    {
382
        if (isset($this->_list[$index])) {
383
            return $this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE;
384
        }
385
386
        return false;
387
    }
388
389
    /**
@@ 397-403 (lines=7) @@
394
     *
395
     * @return bool true if it's a Root PPS, false otherwise
396
     */
397
    public function isRoot($index)
398
    {
399
        if (isset($this->_list[$index])) {
400
            return $this->_list[$index]->Type == self::OLE_PPS_TYPE_ROOT;
401
        }
402
403
        return false;
404
    }
405
406
    /**