Code Duplication    Length = 8-8 lines in 2 locations

lib/Caxy/HtmlDiff/Table/Table.php 1 location

@@ 42-49 (lines=8) @@
39
        return isset($this->rows[$index]) ? $this->rows[$index] : null;
40
    }
41
42
    public function insertRows($rows, $position = null)
43
    {
44
        if ($position === null) {
45
            $this->rows = array_merge($this->rows, $rows);
46
        } else {
47
            array_splice($this->rows, $position, 0, $rows);
48
        }
49
    }
50
51
    public function getCellByPosition(TablePosition $position)
52
    {

lib/Caxy/HtmlDiff/Table/TableRow.php 1 location

@@ 75-82 (lines=8) @@
72
     * @param array $cells
73
     * @param null  $position
74
     */
75
    public function insertCells($cells, $position = null)
76
    {
77
        if ($position === null) {
78
            $this->cells = array_merge($this->cells, $cells);
79
        } else {
80
            array_splice($this->cells, $position, 0, $cells);
81
        }
82
    }
83
}
84