Code Duplication    Length = 7-7 lines in 2 locations

Exception/AltapayPaymentRequestException.php 1 location

@@ 20-26 (lines=7) @@
17
     * @param PaymentInterface $payment
18
     * @return PaymentException
19
     */
20
    public static function create(string $message, Request $request, PaymentInterface $payment) : PaymentException
21
    {
22
        $e = new static($message);
23
        $e->setRequest($request);
24
        $e->setPayment($payment);
25
        return $e;
26
    }
27
}

Exception/PaymentException.php 1 location

@@ 25-31 (lines=7) @@
22
     * @param PaymentInterface $payment
23
     * @return PaymentException
24
     */
25
    public static function create(string $message, Request $request, PaymentInterface $payment) : PaymentException
26
    {
27
        $e = new static($message);
28
        $e->setRequest($request);
29
        $e->setPayment($payment);
30
        return $e;
31
    }
32
33
    /**
34
     * @return Request