Code Duplication    Length = 13-13 lines in 3 locations

Model/Source/BankaccountCheckType.php 1 location

@@ 42-54 (lines=13) @@
39
     *
40
     * @return array
41
     */
42
    public function toOptionArray()
43
    {
44
        return [
45
            [
46
                'value' => PayoneConfig::BANKACCOUNT_CHECKTYPE_REGULAR,
47
                'label' => __('REGULAR'),
48
            ],
49
            [
50
                'value' => PayoneConfig::BANKACCOUNT_CHECKTYPE_POS_BLACKLIST,
51
                'label' => __('POS_BLACKLIST')
52
            ]
53
        ];
54
    }
55
}
56

Model/Source/CreditcardCheckCvc.php 1 location

@@ 42-54 (lines=13) @@
39
     *
40
     * @return array
41
     */
42
    public function toOptionArray()
43
    {
44
        return [
45
            [
46
                'value' => PayoneConfig::CREDITCARD_CHECK_CVC_NO,
47
                'label' => __('No'),
48
            ],
49
            [
50
                'value' => PayoneConfig::CREDITCARD_CHECK_CVC_ALWAYS,
51
                'label' => __('Always')
52
            ]
53
        ];
54
    }
55
}
56

Model/Source/RequestType.php 1 location

@@ 41-53 (lines=13) @@
38
     *
39
     * @return array
40
     */
41
    public function toOptionArray()
42
    {
43
        return [
44
            [
45
                'value' => PayoneConfig::REQUEST_TYPE_PREAUTHORIZATION,
46
                'label' => __('preauthorization'),
47
            ],
48
            [
49
                'value' => PayoneConfig::REQUEST_TYPE_AUTHORIZATION,
50
                'label' => __('authorization')
51
            ]
52
        ];
53
    }
54
}
55