Code Duplication    Length = 7-7 lines in 4 locations

src/Client/Purchase/PaymentParser.php 4 locations

@@ 110-116 (lines=7) @@
107
        );
108
    }
109
110
    private static function parseInvoicePayment($payment, Currency $currency): InvoicePayment
111
    {
112
        return new InvoicePayment(
113
            Uuid::fromString($payment['uuid']),
114
            new Money($payment['amount'], $currency)
115
        );
116
    }
117
118
    private static function parseMobilePayment($payment, Currency $currency): MobilePayment
119
    {
@@ 118-124 (lines=7) @@
115
        );
116
    }
117
118
    private static function parseMobilePayment($payment, Currency $currency): MobilePayment
119
    {
120
        return new MobilePayment(
121
            Uuid::fromString($payment['uuid']),
122
            new Money($payment['amount'], $currency)
123
        );
124
    }
125
126
    private static function parseSwichPayment($payment, Currency $currency): SwishPayment
127
    {
@@ 126-132 (lines=7) @@
123
        );
124
    }
125
126
    private static function parseSwichPayment($payment, Currency $currency): SwishPayment
127
    {
128
        return new SwishPayment(
129
            Uuid::fromString($payment['uuid']),
130
            new Money($payment['amount'], $currency)
131
        );
132
    }
133
134
    private static function parseVippsPayment($payment, Currency $currency): VippsPayment
135
    {
@@ 134-140 (lines=7) @@
131
        );
132
    }
133
134
    private static function parseVippsPayment($payment, Currency $currency): VippsPayment
135
    {
136
        return new VippsPayment(
137
            Uuid::fromString($payment['uuid']),
138
            new Money($payment['amount'], $currency)
139
        );
140
    }
141
}
142