Code Duplication    Length = 11-11 lines in 2 locations

framework/db/DBCore.php 2 locations

@@ 679-689 (lines=11) @@
676
     *
677
     * @return DBObject Selected DBObject or NULL otherwise.
678
     */
679
    public static function selectDBObject($query, $types, $params, $instance) {
680
        $stmt = self::doSelectQuery($query, $types, $params);
681
        $obj = null;
682
        if ($stmt) {
683
            $obj = self::selectDBObjectFromStatement($stmt, $instance);
684
685
            $stmt->close();
686
        }
687
688
        return $obj;
689
    }
690
691
    /**
692
     * Returns list of DB objects by database query statement.
@@ 734-744 (lines=11) @@
731
     *
732
     * @return DBObject Selected DBObject or NULL otherwise.
733
     */
734
    public static function selectDBObjects($query, $types, $params, $instance) {
735
        $stmt = self::doSelectQuery($query, $types, $params);
736
        $obj = null;
737
        if ($stmt) {
738
            $obj = self::selectDBObjectsFromStatement($stmt, $instance);
739
740
            $stmt->close();
741
        }
742
743
        return $obj;
744
    }
745
746
    /**
747
     * Executes SQL query with single record and return this record.