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

@@ 2162-2165 (lines=4) @@
2159
            'type' => ''
2160
        );
2161
2162
        if ( !empty( $params ) && is_array( $params ) )
2163
            $params = (object) array_merge( $defaults, $params );
2164
        else
2165
            $params = (object) $defaults;
2166
2167
        if ( !in_array( $action, array( 'manage', 'reorder' ) ) )
2168
            $action = 'manage';
@@ 2277-2280 (lines=4) @@
2274
            'type' => ''
2275
        );
2276
2277
        if ( !empty( $params ) && is_array( $params ) )
2278
            $params = (object) array_merge( $defaults, $params );
2279
        else
2280
            $params = (object) $defaults;
2281
2282
        if ( !in_array( $action, array( 'manage', 'reorder' ) ) )
2283
            $action = 'manage';