Code Duplication    Length = 5-5 lines in 2 locations

Alpha/Model/ActiveRecordProviderMySQL.php 1 location

@@ 544-548 (lines=5) @@
541
            $limit = ';';
542
        }
543
544
        if (!$ignoreClassType && $this->BO->isTableOverloaded()) {
545
            $sqlQuery = 'SELECT OID FROM '.$this->BO->getTableName()." WHERE $attribute = ? AND classname = ? ORDER BY ".$orderBy.' '.$order.$limit;
546
        } else {
547
            $sqlQuery = 'SELECT OID FROM '.$this->BO->getTableName()." WHERE $attribute = ? ORDER BY ".$orderBy.' '.$order.$limit;
548
        }
549
550
        $this->BO->setLastQuery($sqlQuery);
551
        self::$logger->debug($sqlQuery);

Alpha/Model/ActiveRecordProviderSQLite.php 1 location

@@ 525-529 (lines=5) @@
522
            $limit = ';';
523
        }
524
525
        if (!$ignoreClassType && $this->BO->isTableOverloaded()) {
526
            $sqlQuery = 'SELECT OID FROM '.$this->BO->getTableName()." WHERE $attribute = :attribute AND classname = :classname ORDER BY ".$orderBy.' '.$order.$limit;
527
        } else {
528
            $sqlQuery = 'SELECT OID FROM '.$this->BO->getTableName()." WHERE $attribute = :attribute ORDER BY ".$orderBy.' '.$order.$limit;
529
        }
530
531
        $this->BO->setLastQuery($sqlQuery);
532
        self::$logger->debug($sqlQuery);