Code Duplication    Length = 6-6 lines in 3 locations

src/voku/db/Helper.php 3 locations

@@ 170-175 (lines=6) @@
167
      $dbConnection = DB::getInstance();
168
    }
169
170
    if ($table === '') {
171
      $debug = new Debug($dbConnection);
172
      $debug->displayError('Invalid table name, table name in empty.', false);
173
174
      return [];
175
    }
176
177
    if ($idFieldName === null) {
178
      $idFieldName = 'id';
@@ 341-346 (lines=6) @@
338
      $dbConnection = DB::getInstance();
339
    }
340
341
    if ($table === '') {
342
      $debug = new Debug($dbConnection);
343
      $debug->displayError('Invalid table name, table name in empty.', false);
344
345
      return [];
346
    }
347
348
    if ($databaseName) {
349
      $databaseName = $dbConnection->quote_string(trim($databaseName)) . '.';
@@ 389-394 (lines=6) @@
386
      $dbConnection = DB::getInstance();
387
    }
388
389
    if ($table === '') {
390
      $debug = new Debug($dbConnection);
391
      $debug->displayError('Invalid table name, table name in empty.', false);
392
393
      return false;
394
    }
395
396
    $whereSQL = $dbConnection->_parseArrayPair($whereArray, 'AND');
397
    if ($whereSQL) {