Code Duplication    Length = 6-8 lines in 2 locations

system/modules/Db/objects/Mysql/Query.php 2 locations

@@ 92-99 (lines=8) @@
89
90
    public function join($table, $where = false, $type = 'LEFT', $alias = '') {
91
        if (is_array($table)) {
92
            foreach ($table as $item) {
93
                if (!is_array($item)) {
94
                    call_user_func_array(array($this, 'join'), $table);
95
                    break;
96
                } else {
97
                    $this->join($item);
98
                }
99
            }
100
        } else {
101
            $this->join[] = [$table, $where, $type, $alias];
102
        }
@@ 131-136 (lines=6) @@
128
        if (!is_array($order)) {
129
            $this->order[] = "{$order} {$type}";
130
        } else {
131
            foreach ($order as $item) {
132
                if (!is_array($item)) {
133
                    call_user_func_array(array($this, 'order'), $order);
134
                    break;
135
                } else {
136
                    $this->order($item);
137
                }
138
            }
139
        }