Code Duplication    Length = 10-10 lines in 2 locations

src/Behat/Gherkin/Node/TableNode.php 2 locations

@@ 203-212 (lines=10) @@
200
     *
201
     * @throws NodeException If row with specified index does not exist
202
     */
203
    public function getRow($index)
204
    {
205
        $rows = $this->getRows();
206
207
        if (!isset($rows[$index])) {
208
            throw new NodeException(sprintf('Rows #%d does not exist in table.', $index));
209
        }
210
211
        return $rows[$index];
212
    }
213
214
    /**
215
     * Returns specific column in a table.
@@ 248-257 (lines=10) @@
245
     *
246
     * @throws NodeException If row with specified index does not exist
247
     */
248
    public function getRowLine($index)
249
    {
250
        $lines = array_keys($this->table);
251
252
        if (!isset($lines[$index])) {
253
            throw new NodeException(sprintf('Rows #%d does not exist in table.', $index));
254
        }
255
256
        return $lines[$index];
257
    }
258
259
    /**
260
     * Converts row into delimited string.