Code Duplication    Length = 11-11 lines in 2 locations

framework/db/DBCore.php 2 locations

@@ 693-703 (lines=11) @@
690
     *
691
     * @return DBObject Selected DBObject or NULL otherwise.
692
     */
693
    public static function selectDBObject($query, $types, $params, $instance) {
694
        $stmt = self::doSelectQuery($query, $types, $params);
695
        $obj = null;
696
        if ($stmt) {
697
            $obj = self::selectDBObjectFromStatement($stmt, $instance);
698
699
            $stmt->close();
700
        }
701
702
        return $obj;
703
    }
704
705
    /**
706
     * Returns list of DB objects by database query statement.
@@ 748-758 (lines=11) @@
745
     *
746
     * @return DBObject Selected DBObject or NULL otherwise.
747
     */
748
    public static function selectDBObjects($query, $types, $params, $instance) {
749
        $stmt = self::doSelectQuery($query, $types, $params);
750
        $obj = null;
751
        if ($stmt) {
752
            $obj = self::selectDBObjectsFromStatement($stmt, $instance);
753
754
            $stmt->close();
755
        }
756
757
        return $obj;
758
    }
759
760
    /**
761
     * Executes SQL query with single record and return this record.