Code Duplication    Length = 4-4 lines in 3 locations

deprecated/classes/Pods.php 1 location

@@ 511-514 (lines=4) @@
508
            'sql' => $sql
509
        );
510
511
        if ( is_array( $orderby ) )
512
            $params = array_merge( $params, $orderby );
513
        elseif ( !empty( $orderby ) )
514
            $params[ 'orderby' ] = $orderby;
515
516
        $params[ 'where' ] = trim( str_replace( $find, $replace, ' ' . $params[ 'where' ] ) );
517
        $params[ 'orderby' ] = trim( str_replace( $find, $replace, ' ' . $params[ 'orderby' ] ) );

classes/PodsUI.php 2 locations

@@ 2201-2204 (lines=4) @@
2198
            'type' => ''
2199
        );
2200
2201
        if ( !empty( $params ) && is_array( $params ) )
2202
            $params = (object) array_merge( $defaults, $params );
2203
        else
2204
            $params = (object) $defaults;
2205
2206
        if ( !in_array( $action, array( 'manage', 'reorder' ) ) )
2207
            $action = 'manage';
@@ 2329-2332 (lines=4) @@
2326
            'type' => ''
2327
        );
2328
2329
        if ( !empty( $params ) && is_array( $params ) )
2330
            $params = (object) array_merge( $defaults, $params );
2331
        else
2332
            $params = (object) $defaults;
2333
2334
        if ( !in_array( $action, array( 'manage', 'reorder' ) ) )
2335
            $action = 'manage';