Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 56-63 (lines=8) @@
53
    return $this->query();
54
  }
55
56
  public function update($table, $data) {
57
    $this->operation = 'UPDATE';
58
    $this->table = $table;
59
    $this->cols = $data;
60
    $result = $this->query();
61
    return $result->pdoResult->rowCount();
62
  }
63
64
  public function delete($table) {
65
    $this->operation = 'DELETE';
66
    $this->table = $table;
@@ 64-70 (lines=7) @@
61
    return $result->pdoResult->rowCount();
62
  }
63
64
  public function delete($table) {
65
    $this->operation = 'DELETE';
66
    $this->table = $table;
67
    $result = $this->query();
68
    return $result->pdoResult->rowCount();
69
  }
70
71
  public function createTable($table_name, $cols, $indexes = []) {
72
    $this->operation = 'CREATE TABLE';
73
    $this->table = $table_name;