Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1301-1310 (lines=10) @@
1298
     * @return EE_Base_Class|null|array()
1299
     * @throws \EE_Error
1300
     */
1301
    public function next(
1302
        $current_field_value,
1303
        $field_to_order_by = null,
1304
        $query_params = array(),
1305
        $columns_to_select = null
1306
    ) {
1307
        $results = $this->_get_consecutive($current_field_value, '>', $field_to_order_by, 1, $query_params,
1308
            $columns_to_select);
1309
        return empty($results) ? null : reset($results);
1310
    }
1311
1312
1313
@@ 1330-1339 (lines=10) @@
1327
     * @return EE_Base_Class|null|array()
1328
     * @throws EE_Error
1329
     */
1330
    public function previous(
1331
        $current_field_value,
1332
        $field_to_order_by = null,
1333
        $query_params = array(),
1334
        $columns_to_select = null
1335
    ) {
1336
        $results = $this->_get_consecutive($current_field_value, '<', $field_to_order_by, 1, $query_params,
1337
            $columns_to_select);
1338
        return empty($results) ? null : reset($results);
1339
    }
1340
1341
1342