Code Duplication    Length = 9-9 lines in 2 locations

class/Sheet.php 2 locations

@@ 52-60 (lines=9) @@
49
     *
50
     * @throws PHPExcel_Reader_Exception
51
     */
52
    public function readSheetByName($sheetName)
53
    {
54
        $objPHPExcel = $this->parser->sourceReader
55
                                    ->load($this->parser->sourceFilePath.$this->parser->sourceFile)
56
                                    ->getSheetByName($sheetName)
57
                                    ->toArray();
58
59
        return $this->parser->getData($objPHPExcel);
60
    }
61
62
    /**
63
     * Метод для чтения отдельного листа (по индексу).
@@ 72-80 (lines=9) @@
69
     * @throws PHPExcel_Exception
70
     * @throws PHPExcel_Reader_Exception
71
     */
72
    public function readSheetByIndex($sheetIndex)
73
    {
74
        $objPHPExcel = $this->parser->sourceReader
75
                                    ->load($this->parser->sourceFilePath.$this->parser->sourceFile)
76
                                    ->getSheet($sheetIndex)
77
                                    ->toArray();
78
79
        return $this->parser->getData($objPHPExcel);
80
    }
81
}