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

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