Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1343-1352 (lines=10) @@
1340
     * @return EE_Base_Class|null|array()
1341
     * @throws EE_Error
1342
     */
1343
    public function next(
1344
        $current_field_value,
1345
        $field_to_order_by = null,
1346
        $query_params = array(),
1347
        $columns_to_select = null
1348
    ) {
1349
        $results = $this->_get_consecutive(
1350
            $current_field_value,
1351
            '>',
1352
            $field_to_order_by,
1353
            1,
1354
            $query_params,
1355
            $columns_to_select
@@ 1378-1387 (lines=10) @@
1375
     * @return EE_Base_Class|null|array()
1376
     * @throws EE_Error
1377
     */
1378
    public function previous(
1379
        $current_field_value,
1380
        $field_to_order_by = null,
1381
        $query_params = array(),
1382
        $columns_to_select = null
1383
    ) {
1384
        $results = $this->_get_consecutive(
1385
            $current_field_value,
1386
            '<',
1387
            $field_to_order_by,
1388
            1,
1389
            $query_params,
1390
            $columns_to_select