Code Duplication    Length = 11-11 lines in 2 locations

includes/classes/DBAL/DbQuery.php 2 locations

@@ 130-140 (lines=11) @@
127
  public function insertSet($replace) {
128
    $this->build = array();
129
130
    switch ($replace) {
131
      case DB_INSERT_IGNORE:
132
        $this->command = static::INSERT_IGNORE;
133
      break;
134
      case DB_INSERT_REPLACE:
135
        $this->command = static::REPLACE;
136
      break;
137
      default:
138
        $this->command = static::INSERT;
139
      break;
140
    }
141
142
    $this->buildCommand();
143
    $this->buildSetFields();
@@ 151-161 (lines=11) @@
148
  public function insertBatch($replace) {
149
    $this->build = array();
150
151
    switch ($replace) {
152
      case DB_INSERT_IGNORE:
153
        $this->command = static::INSERT_IGNORE;
154
      break;
155
      case DB_INSERT_REPLACE:
156
        $this->command = static::REPLACE;
157
      break;
158
      default:
159
        $this->command = static::INSERT;
160
      break;
161
    }
162
163
    $this->buildCommand();
164
    $this->build[] = " (";