Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 159-168 (lines=10) @@
156
     *
157
     * @throws NodeException If row with specified index does not exist
158
     */
159
    public function getRow($index)
160
    {
161
        $rows = $this->getRows();
162
163
        if (!isset($rows[$index])) {
164
            throw new NodeException(sprintf('Rows #%d does not exist in table.', $index));
165
        }
166
167
        return $rows[$index];
168
    }
169
170
    /**
171
     * Returns specific column in a table.
@@ 204-213 (lines=10) @@
201
     *
202
     * @throws NodeException If row with specified index does not exist
203
     */
204
    public function getRowLine($index)
205
    {
206
        $lines = array_keys($this->table);
207
208
        if (!isset($lines[$index])) {
209
            throw new NodeException(sprintf('Rows #%d does not exist in table.', $index));
210
        }
211
212
        return $lines[$index];
213
    }
214
215
    /**
216
     * Converts row into delimited string.