Code Duplication    Length = 6-6 lines in 3 locations

src/voku/db/Helper.php 3 locations

@@ 189-194 (lines=6) @@
186
            $dbConnection = DB::getInstance();
187
        }
188
189
        if ($table === '') {
190
            $debug = new Debug($dbConnection);
191
            $debug->displayError('Invalid table name, table name in empty.', false);
192
193
            return [];
194
        }
195
196
        if ($idFieldName === null) {
197
            $idFieldName = 'id';
@@ 358-363 (lines=6) @@
355
            $dbConnection = DB::getInstance();
356
        }
357
358
        if ($table === '') {
359
            $debug = new Debug($dbConnection);
360
            $debug->displayError('Invalid table name, table name in empty.', false);
361
362
            return [];
363
        }
364
365
        if ($databaseName) {
366
            $databaseName = $dbConnection->quote_string(\trim($databaseName)) . '.';
@@ 406-411 (lines=6) @@
403
            $dbConnection = DB::getInstance();
404
        }
405
406
        if ($table === '') {
407
            $debug = new Debug($dbConnection);
408
            $debug->displayError('Invalid table name, table name in empty.', false);
409
410
            return false;
411
        }
412
413
        $whereSQL = $dbConnection->_parseArrayPair($whereArray, 'AND');
414
        if ($whereSQL) {