Code Duplication    Length = 13-14 lines in 2 locations

src/Parser/CsvParser.php 1 location

@@ 110-123 (lines=14) @@
107
     *
108
     * @return array
109
     */
110
    public function getData($numRows = 0)
111
    {
112
        $this->close();
113
        $this->open();
114
115
        $skipLine = false;
116
        if ($this->hasColumnNames) {
117
            $skipLine = true;
118
        }
119
120
        $data = $this->readDataFromFile($numRows, $skipLine);
121
122
        return $data;
123
    }
124
125
    /**
126
     * @return bool

src/Parser/XlsxParser.php 1 location

@@ 146-158 (lines=13) @@
143
     *
144
     * @return array
145
     */
146
    public function getData($numRows = 0)
147
    {
148
        $this->open();
149
150
        $skipLine = false;
151
        if ($this->hasColumnNames) {
152
            $skipLine = true;
153
        }
154
155
        $data = $this->readDataFromFile($numRows, $skipLine);
156
157
        return $data;
158
    }
159
160
    /**
161
     * @return bool