Code Duplication    Length = 7-7 lines in 2 locations

Gateway/RecurlyManager.php 2 locations

@@ 28-34 (lines=7) @@
25
        return $this->accountPrefix;
26
    }
27
28
    public function createAccount(Tenant $tenant)
29
    {
30
        $account_code = sprintf("%s-%s", $this->accountPrefix, $tenant->getId());
31
        $account = new \Recurly_Account($account_code);
32
        $account->company_name = $tenant->getName();
33
        $account->create();
34
    }
35
36
    public function subscriptionExists(Tenant $tenant)
37
    {
@@ 69-75 (lines=7) @@
66
        return $billing;
67
    }
68
69
    public function updateBillingInfo(Tenant $tenant, $data)
70
    {
71
        $account_code = sprintf("%s-%s", $this->accountPrefix, $tenant->getId());
72
        $billing_info = $this->createBillingInfo($data);
73
        $billing_info->account_code = $account_code;
74
        $billing_info->update();
75
    }
76
77
    public function createSubscription(Tenant $tenant, $data)
78
    {