Code Duplication    Length = 10-10 lines in 2 locations

framework/db/DBSelector.php 2 locations

@@ 144-153 (lines=10) @@
141
        $query.= " LIMIT 1";
142
143
        $fieldType = DBField::getType($fieldValue);
144
        if (!$debug) {
145
            $stmt = DBCore::doSelectQuery($query, $fieldType, [$fieldValue]);
146
            if ($stmt != false) {
147
                $dbObject = DBCore::selectDBObjectFromStatement($stmt, $this->dbObject);
148
149
                $stmt->close();
150
151
                return $dbObject;
152
            }
153
154
            return null;
155
        }
156
        DBQuery::showQueryDebugInfo($query, $fieldType, [$fieldValue]);
@@ 233-242 (lines=10) @@
230
        $query.= $this->getQueryLimitSQL();
231
232
        $fieldType = DBField::getType($fieldValue);
233
        if (!$debug) {
234
            $stmt = DBCore::doSelectQuery($query, $fieldType, [$fieldValue]);
235
            if ($stmt != false) {
236
                $dbObjects = DBCore::selectDBObjectsFromStatement($stmt, get_class($this->dbObject));
237
238
                $stmt->close();
239
240
                return $dbObjects;
241
            }
242
243
            return [];
244
        }
245
        DBQuery::showQueryDebugInfo($query, $fieldType, [$fieldValue]);