Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1347-1356 (lines=10) @@
1344
     * @return EE_Base_Class|null|array()
1345
     * @throws EE_Error
1346
     */
1347
    public function next(
1348
        $current_field_value,
1349
        $field_to_order_by = null,
1350
        $query_params = array(),
1351
        $columns_to_select = null
1352
    ) {
1353
        $results = $this->_get_consecutive(
1354
            $current_field_value,
1355
            '>',
1356
            $field_to_order_by,
1357
            1,
1358
            $query_params,
1359
            $columns_to_select
@@ 1382-1391 (lines=10) @@
1379
     * @return EE_Base_Class|null|array()
1380
     * @throws EE_Error
1381
     */
1382
    public function previous(
1383
        $current_field_value,
1384
        $field_to_order_by = null,
1385
        $query_params = array(),
1386
        $columns_to_select = null
1387
    ) {
1388
        $results = $this->_get_consecutive(
1389
            $current_field_value,
1390
            '<',
1391
            $field_to_order_by,
1392
            1,
1393
            $query_params,
1394
            $columns_to_select