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

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