Code Duplication    Length = 6-6 lines in 3 locations

src/voku/db/Helper.php 3 locations

@@ 199-204 (lines=6) @@
196
            $dbConnection = DB::getInstance();
197
        }
198
199
        if ($table === '') {
200
            $debug = new Debug($dbConnection);
201
            $debug->displayError('Invalid table name, table name in empty.', false);
202
203
            return [];
204
        }
205
206
        if ($idFieldName === null) {
207
            $idFieldName = 'id';
@@ 386-391 (lines=6) @@
383
            $dbConnection = DB::getInstance();
384
        }
385
386
        if ($table === '') {
387
            $debug = new Debug($dbConnection);
388
            $debug->displayError('Invalid table name, table name in empty.', false);
389
390
            return [];
391
        }
392
393
        if ($databaseName) {
394
            $databaseName = $dbConnection->quote_string(\trim($databaseName)) . '.';
@@ 440-445 (lines=6) @@
437
            $dbConnection = DB::getInstance();
438
        }
439
440
        if ($table === '') {
441
            $debug = new Debug($dbConnection);
442
            $debug->displayError('Invalid table name, table name in empty.', false);
443
444
            return false;
445
        }
446
447
        $whereSQL = $dbConnection->_parseArrayPair($whereArray, 'AND');
448
        if ($whereSQL) {