Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 70-77 (lines=8) @@
67
        return $this->query();
68
    }
69
70
    public function update($table, $data) {
71
        $this->operation = 'UPDATE';
72
        $this->table = $table;
73
        $this->cols = $data;
74
        $result = $this->query();
75
        return $result->pdoResult->rowCount();
76
    }
77
78
    public function delete($table) {
79
        $this->operation = 'DELETE';
80
        $this->table = $table;
@@ 78-84 (lines=7) @@
75
        return $result->pdoResult->rowCount();
76
    }
77
78
    public function delete($table) {
79
        $this->operation = 'DELETE';
80
        $this->table = $table;
81
        $result = $this->query();
82
        return $result->pdoResult->rowCount();
83
    }
84
85
    public function createTable($table_name, $cols, $indexes = []) {
86
        $this->operation = 'CREATE TABLE';
87
        $this->table = $table_name;