Code Duplication    Length = 15-15 lines in 2 locations

Helper/Request.php 2 locations

@@ 103-117 (lines=15) @@
100
     *
101
     * @return string
102
     */
103
    public function getHostedIframeRequestCCHash()
104
    {
105
        $sHash = md5(
106
            $this->getConfigParam('aid').
107
            $this->environmentHelper->getEncoding().
108
            $this->getConfigParam('mid').
109
            $this->getConfigParam('mode', PayoneConfig::METHOD_CREDITCARD, 'payone_payment').
110
            $this->getConfigParam('portalid').
111
            'creditcardcheck'.
112
            'JSON'.
113
            'yes'.
114
            $this->getConfigParam('key')
115
        );
116
        return $sHash;
117
    }
118
119
    /**
120
     * Get bankaccount check request hash
@@ 124-138 (lines=15) @@
121
     *
122
     * @return string
123
     */
124
    public function getBankaccountCheckRequestHash()
125
    {
126
        $sHash = md5(
127
            $this->getConfigParam('aid').
128
            $this->getConfigParam('bankaccountcheck_type', PayoneConfig::METHOD_DEBIT, 'payone_payment').
129
            $this->environmentHelper->getEncoding().
130
            $this->getConfigParam('mid').
131
            $this->getConfigParam('mode', PayoneConfig::METHOD_CREDITCARD, 'payone_payment').
132
            $this->getConfigParam('portalid').
133
            'bankaccountcheck'.
134
            'JSON'.
135
            $this->getConfigParam('key')
136
        );
137
        return $sHash;
138
    }
139
140
    /**
141
     * Get hosted iframe request for javascript in the checkout