Code Duplication    Length = 6-6 lines in 3 locations

src/voku/db/Helper.php 3 locations

@@ 110-115 (lines=6) @@
107
      $dbConnection = DB::getInstance();
108
    }
109
110
    if ($table === '') {
111
      $debug = new Debug($dbConnection);
112
      $debug->displayError('Invalid table name, table name in empty.', false);
113
114
      return array();
115
    }
116
117
    if ($idFieldName === null) {
118
      $idFieldName = 'id';
@@ 261-266 (lines=6) @@
258
      $dbConnection = DB::getInstance();
259
    }
260
261
    if ($table === '') {
262
      $debug = new Debug($dbConnection);
263
      $debug->displayError('Invalid table name, table name in empty.', false);
264
265
      return array();
266
    }
267
268
    if ($databaseName) {
269
      $databaseName = $dbConnection->quote_string(trim($databaseName)) . '.';
@@ 309-314 (lines=6) @@
306
      $dbConnection = DB::getInstance();
307
    }
308
309
    if ($table === '') {
310
      $debug = new Debug($dbConnection);
311
      $debug->displayError('Invalid table name, table name in empty.', false);
312
313
      return false;
314
    }
315
316
    $whereSQL = $dbConnection->_parseArrayPair($whereArray, 'AND');
317
    if ($whereSQL) {