Code Duplication    Length = 6-8 lines in 2 locations

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

@@ 103-110 (lines=8) @@
100
101
    public function join($table, $where = false, $type = 'LEFT', $alias = '') {
102
        if (is_array($table)) {
103
            foreach ($table as $item) {
104
                if (!is_array($item)) {
105
                    call_user_func_array(array($this, 'join'), $table);
106
                    break;
107
                } else {
108
                    $this->join($item);
109
                }
110
            }
111
        } else {
112
            $this->join[] = [$table, $where, $type, $alias];
113
        }
@@ 142-147 (lines=6) @@
139
        if (!is_array($order)) {
140
            $this->order[] = "{$order} {$type}";
141
        } else {
142
            foreach ($order as $item) {
143
                if (!is_array($item)) {
144
                    call_user_func_array(array($this, 'order'), $order);
145
                    break;
146
                } else {
147
                    $this->order($item);
148
                }
149
            }
150
        }