Code Duplication    Length = 9-9 lines in 3 locations

src/SDK/Action/RecurringPlan.php 1 location

@@ 43-51 (lines=9) @@
40
        $this->queryParameters = $args;
41
    }
42
43
    public function resendLink($args)
44
    {
45
        $this->action = 'RECURRINGPLANRESENDLINK';
46
        $queryParamKeys = [
47
            'RECURRINGPLANCODE', 'NOTIFICATIONCHANNELS'
48
        ];
49
        $args = MerchantSafeUnipay\filter($queryParamKeys, $args);
50
        $this->queryParameters = $args;
51
    }
52
}
53

src/SDK/Action/RecurringPlanCard.php 2 locations

@@ 31-39 (lines=9) @@
28
        $this->queryParameters = $args;
29
    }
30
31
    public function delete($args)
32
    {
33
        $this->action = 'RECURRINGPLANCARDDELETE';
34
        $queryParamKeys = [
35
            'RECURRINGPLANCODE', 'CARDTOKEN'
36
        ];
37
        $args = MerchantSafeUnipay\filter($queryParamKeys, $args);
38
        $this->queryParameters = $args;
39
    }
40
41
    public function resendLink($args)
42
    {
@@ 41-49 (lines=9) @@
38
        $this->queryParameters = $args;
39
    }
40
41
    public function resendLink($args)
42
    {
43
        $this->action = 'RECURRINGPLANRESENDLINK';
44
        $queryParamKeys = [
45
            'RECURRINGPLANCODE', 'NOTIFICATIONCHANNELS'
46
        ];
47
        $args = MerchantSafeUnipay\filter($queryParamKeys, $args);
48
        $this->queryParameters = $args;
49
    }
50
}
51