Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wpinv-reports.php 2 locations

@@ 408-412 (lines=5) @@
405
            'orderby'  => 'date',
406
        );
407
        
408
        if ( $this->status != 'any' ) {
409
            $args['status'] = $this->status;
410
        } else {
411
            $args['status'] = array_keys( wpinv_get_invoice_statuses( true ) );
412
        }
413
414
        if ( !empty( $this->from_date ) || !empty( $this->to_date ) ) {
415
            $args['date_query'] = array(
@@ 478-482 (lines=5) @@
475
            'return'   => 'ids',
476
        );
477
        
478
        if ( $this->status != 'any' ) {
479
            $args['status'] = $this->status;
480
        } else {
481
            $args['status'] = array_keys( wpinv_get_invoice_statuses( true ) );
482
        }
483
484
        if ( !empty( $this->from_date ) || !empty( $this->to_date ) ) {
485
            $args['date_query'] = array(