Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Shared/OLE.php 2 locations

@@ 358-364 (lines=7) @@
355
     * @param int $index The index for the PPS
356
     * @return bool true if it's a File PPS, false otherwise
357
     */
358
    public function isFile($index)
359
    {
360
        if (isset($this->_list[$index])) {
361
            return $this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE;
362
        }
363
364
        return false;
365
    }
366
367
    /**
@@ 374-380 (lines=7) @@
371
     * @param int $index The index for the PPS.
372
     * @return bool true if it's a Root PPS, false otherwise
373
     */
374
    public function isRoot($index)
375
    {
376
        if (isset($this->_list[$index])) {
377
            return $this->_list[$index]->Type == self::OLE_PPS_TYPE_ROOT;
378
        }
379
380
        return false;
381
    }
382
383
    /**