Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 65-72 (lines=8) @@
62
     * @param TableRow[] $rows
63
     * @param null|int   $position
64
     */
65
    public function insertRows($rows, $position = null)
66
    {
67
        if ($position === null) {
68
            $this->rows = array_merge($this->rows, $rows);
69
        } else {
70
            array_splice($this->rows, $position, 0, $rows);
71
        }
72
    }
73
74
    /**
75
     * @param TablePosition $position

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

@@ 98-105 (lines=8) @@
95
     * @param TableCell[] $cells
96
     * @param null|int    $position
97
     */
98
    public function insertCells($cells, $position = null)
99
    {
100
        if ($position === null) {
101
            $this->cells = array_merge($this->cells, $cells);
102
        } else {
103
            array_splice($this->cells, $position, 0, $cells);
104
        }
105
    }
106
}
107