Code Duplication    Length = 9-10 lines in 3 locations

src/Paystack/Routes/Transaction.php 3 locations

@@ 38-47 (lines=10) @@
35
     *
36
     * @static
37
     */
38
    public static function initialize()
39
    {
40
        return [RouteInterface::METHOD_KEY   => RouteInterface::POST_METHOD,
41
            RouteInterface::ENDPOINT_KEY => Transaction::root() . '/initialize',
42
            RouteInterface::PARAMS_KEY   => ['reference',
43
                'amount',
44
                'email',
45
                'plan' ]
46
        ];
47
    }
48
    /**
49
     * Charge authorization
50
     *
@@ 53-61 (lines=9) @@
50
     *
51
     * @static
52
     */
53
    public static function charge()
54
    {
55
        return [RouteInterface::METHOD_KEY   => RouteInterface::POST_METHOD,
56
            RouteInterface::ENDPOINT_KEY => Transaction::root() . '/charge_authorization',
57
            RouteInterface::PARAMS_KEY   => ['reference',
58
                'authorization_code',
59
                'email',
60
                'amount' ] ];
61
    }
62
    /**
63
     * Charge token
64
     *
@@ 67-75 (lines=9) @@
64
     *
65
     * @static
66
     */
67
    public static function chargeToken()
68
    {
69
        return [RouteInterface::METHOD_KEY   => RouteInterface::POST_METHOD,
70
            RouteInterface::ENDPOINT_KEY => Transaction::root() . '/charge_token',
71
            RouteInterface::PARAMS_KEY   => ['reference',
72
                'token',
73
                'email',
74
                'amount' ] ];
75
    }
76
    /**
77
     * Get transaction by ID
78
     *