Code Duplication    Length = 18-18 lines in 2 locations

Gateway/Response/TxnIdHandler.php 1 location

@@ 151-168 (lines=18) @@
148
     *
149
     * @param string $type
150
     */
151
    public function mapperCcType($type)
152
    {
153
        if ($type === 'MASTERCARD') {
154
            return 'MC';
155
        } elseif ($type === 'VISA') {
156
            return 'VI';
157
        } elseif ($type === 'AMEX') {
158
            return 'AE';
159
        } elseif ($type === 'DINERS') {
160
            return 'DN';
161
        } elseif ($type === 'HIPERCARD') {
162
            return 'HC';
163
        } elseif ($type === 'HIPER') {
164
            return 'HI';
165
        } elseif ($type === 'ELO') {
166
            return 'ELO';
167
        }
168
    }
169
}
170

Gateway/Response/VaultDetailsHandler.php 1 location

@@ 158-175 (lines=18) @@
155
     *
156
     * @param string $type
157
     */
158
    public function mapperCcType($type)
159
    {
160
        if ($type === 'MASTERCARD') {
161
            return 'MC';
162
        } elseif ($type === 'VISA') {
163
            return 'VI';
164
        } elseif ($type === 'AMEX') {
165
            return 'AE';
166
        } elseif ($type === 'DINERS') {
167
            return 'DN';
168
        } elseif ($type === 'HIPERCARD') {
169
            return 'HC';
170
        } elseif ($type === 'HIPER') {
171
            return 'HI';
172
        } elseif ($type === 'ELO') {
173
            return 'ELO';
174
        }
175
    }
176
}
177