Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1332-1341 (lines=10) @@
1329
     * @return EE_Base_Class|null|array()
1330
     * @throws EE_Error
1331
     */
1332
    public function next(
1333
        $current_field_value,
1334
        $field_to_order_by = null,
1335
        $query_params = array(),
1336
        $columns_to_select = null
1337
    ) {
1338
        $results = $this->_get_consecutive(
1339
            $current_field_value,
1340
            '>',
1341
            $field_to_order_by,
1342
            1,
1343
            $query_params,
1344
            $columns_to_select
@@ 1367-1376 (lines=10) @@
1364
     * @return EE_Base_Class|null|array()
1365
     * @throws EE_Error
1366
     */
1367
    public function previous(
1368
        $current_field_value,
1369
        $field_to_order_by = null,
1370
        $query_params = array(),
1371
        $columns_to_select = null
1372
    ) {
1373
        $results = $this->_get_consecutive(
1374
            $current_field_value,
1375
            '<',
1376
            $field_to_order_by,
1377
            1,
1378
            $query_params,
1379
            $columns_to_select