Code Duplication    Length = 13-13 lines in 2 locations

Classes/Database/DatabaseConnection.php 2 locations

@@ 279-291 (lines=13) @@
276
     * @param string $where WHERE clause, eg. "uid=1". NOTICE: You must escape values in this argument with $this->fullQuoteStr() yourself!
277
     * @return bool|\mysqli_result|object MySQLi result object / DBAL object
278
     */
279
    public function exec_DELETEquery($table, $where)
280
    {
281
        $this->logDeprecation();
282
        $res = $this->query($this->DELETEquery($table, $where));
283
        if ($this->debugOutput) {
284
            $this->debug('exec_DELETEquery');
285
        }
286
        foreach ($this->postProcessHookObjects as $hookObject) {
287
            /** @var $hookObject PostProcessQueryHookInterface */
288
            $hookObject->exec_DELETEquery_postProcessAction($table, $where, $this);
289
        }
290
        return $res;
291
    }
292
293
    /**
294
     * Creates and executes a SELECT SQL-statement
@@ 457-469 (lines=13) @@
454
     * @param string $table Database tablename
455
     * @return mixed Result from handler
456
     */
457
    public function exec_TRUNCATEquery($table)
458
    {
459
        $this->logDeprecation();
460
        $res = $this->query($this->TRUNCATEquery($table));
461
        if ($this->debugOutput) {
462
            $this->debug('exec_TRUNCATEquery');
463
        }
464
        foreach ($this->postProcessHookObjects as $hookObject) {
465
            /** @var $hookObject PostProcessQueryHookInterface */
466
            $hookObject->exec_TRUNCATEquery_postProcessAction($table, $this);
467
        }
468
        return $res;
469
    }
470
471
    /**
472
     * Central query method. Also checks if there is a database connection.