Code Duplication    Length = 6-6 lines in 3 locations

src/voku/db/Helper.php 3 locations

@@ 166-171 (lines=6) @@
163
      $dbConnection = DB::getInstance();
164
    }
165
166
    if ($table === '') {
167
      $debug = new Debug($dbConnection);
168
      $debug->displayError('Invalid table name, table name in empty.', false);
169
170
      return array();
171
    }
172
173
    if ($idFieldName === null) {
174
      $idFieldName = 'id';
@@ 317-322 (lines=6) @@
314
      $dbConnection = DB::getInstance();
315
    }
316
317
    if ($table === '') {
318
      $debug = new Debug($dbConnection);
319
      $debug->displayError('Invalid table name, table name in empty.', false);
320
321
      return array();
322
    }
323
324
    if ($databaseName) {
325
      $databaseName = $dbConnection->quote_string(trim($databaseName)) . '.';
@@ 365-370 (lines=6) @@
362
      $dbConnection = DB::getInstance();
363
    }
364
365
    if ($table === '') {
366
      $debug = new Debug($dbConnection);
367
      $debug->displayError('Invalid table name, table name in empty.', false);
368
369
      return false;
370
    }
371
372
    $whereSQL = $dbConnection->_parseArrayPair($whereArray, 'AND');
373
    if ($whereSQL) {