Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 193-202 (lines=10) @@
190
     *
191
     * @throws NodeException If row with specified index does not exist
192
     */
193
    public function getRow($index)
194
    {
195
        $rows = $this->getRows();
196
197
        if (!isset($rows[$index])) {
198
            throw new NodeException(sprintf('Rows #%d does not exist in table.', $index));
199
        }
200
201
        return $rows[$index];
202
    }
203
204
    /**
205
     * Returns specific column in a table.
@@ 238-247 (lines=10) @@
235
     *
236
     * @throws NodeException If row with specified index does not exist
237
     */
238
    public function getRowLine($index)
239
    {
240
        $lines = array_keys($this->table);
241
242
        if (!isset($lines[$index])) {
243
            throw new NodeException(sprintf('Rows #%d does not exist in table.', $index));
244
        }
245
246
        return $lines[$index];
247
    }
248
249
    /**
250
     * Converts row into delimited string.