Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

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