Code Duplication    Length = 6-8 lines in 2 locations

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

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