Code Duplication    Length = 7-7 lines in 2 locations

includes/wpinv-gateway-functions.php 2 locations

@@ 693-699 (lines=7) @@
690
    $data       = array();
691
    $request    = $_REQUEST;
692
    
693
    if ( $method == 'post' ) {
694
        if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] != 'POST' ) {
695
            return $data;
696
        }
697
        
698
        $request = $_POST;
699
    }
700
    
701
    if ( $method == 'get' ) {
702
        if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] != 'GET' ) {
@@ 701-707 (lines=7) @@
698
        $request = $_POST;
699
    }
700
    
701
    if ( $method == 'get' ) {
702
        if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] != 'GET' ) {
703
            return $data;
704
        }
705
        
706
        $request = $_GET;
707
    }
708
    
709
    // Set initial post data to empty string
710
    $post_data = '';