Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1318-1327 (lines=10) @@
1315
     * @return EE_Base_Class|null|array()
1316
     * @throws EE_Error
1317
     */
1318
    public function next(
1319
        $current_field_value,
1320
        $field_to_order_by = null,
1321
        $query_params = array(),
1322
        $columns_to_select = null
1323
    ) {
1324
        $results = $this->_get_consecutive(
1325
            $current_field_value,
1326
            '>',
1327
            $field_to_order_by,
1328
            1,
1329
            $query_params,
1330
            $columns_to_select
@@ 1353-1362 (lines=10) @@
1350
     * @return EE_Base_Class|null|array()
1351
     * @throws EE_Error
1352
     */
1353
    public function previous(
1354
        $current_field_value,
1355
        $field_to_order_by = null,
1356
        $query_params = array(),
1357
        $columns_to_select = null
1358
    ) {
1359
        $results = $this->_get_consecutive(
1360
            $current_field_value,
1361
            '<',
1362
            $field_to_order_by,
1363
            1,
1364
            $query_params,
1365
            $columns_to_select