Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1273-1282 (lines=10) @@
1270
     * @return EE_Base_Class|null|array()
1271
     * @throws EE_Error
1272
     */
1273
    public function next(
1274
        $current_field_value,
1275
        $field_to_order_by = null,
1276
        $query_params = array(),
1277
        $columns_to_select = null
1278
    ) {
1279
        $results = $this->_get_consecutive(
1280
            $current_field_value,
1281
            '>',
1282
            $field_to_order_by,
1283
            1,
1284
            $query_params,
1285
            $columns_to_select
@@ 1308-1317 (lines=10) @@
1305
     * @return EE_Base_Class|null|array()
1306
     * @throws EE_Error
1307
     */
1308
    public function previous(
1309
        $current_field_value,
1310
        $field_to_order_by = null,
1311
        $query_params = array(),
1312
        $columns_to_select = null
1313
    ) {
1314
        $results = $this->_get_consecutive(
1315
            $current_field_value,
1316
            '<',
1317
            $field_to_order_by,
1318
            1,
1319
            $query_params,
1320
            $columns_to_select