Code Duplication    Length = 3-3 lines in 2 locations

includes/wpinv-invoice-functions.php 1 location

@@ 1813-1815 (lines=3) @@
1810
        $wp_query_args['paged'] = absint( $args['page'] );
1811
    }
1812
1813
    if ( ! empty( $args['exclude'] ) ) {
1814
        $wp_query_args['post__not_in'] = array_map( 'absint', $args['exclude'] );
1815
    }
1816
1817
    if ( ! $args['paginate' ] ) {
1818
        $wp_query_args['no_found_rows'] = true;

includes/wpinv-item-functions.php 1 location

@@ 129-131 (lines=3) @@
126
        'paged'          => absint( $args['page'] ),
127
    );
128
129
    if ( ! empty( $args['exclude'] ) ) {
130
        $wp_query_args['post__not_in'] = array_map( 'absint', $args['exclude'] );
131
    }
132
133
    if ( ! $args['paginate' ] ) {
134
        $wp_query_args['no_found_rows'] = true;