GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 10-11 lines in 4 locations

application/components/payment/AbstractPayment.php 4 locations

@@ 92-102 (lines=11) @@
89
     * @param bool|true $scheme
90
     * @return string
91
     */
92
    protected function createErrorUrl(array $params = [], $scheme = true)
93
    {
94
        $result = [
95
            '/shop/payment/error',
96
            'id' => $this->transaction->id,
97
            'othash' => $this->transaction->generateHash(),
98
        ];
99
        $params = array_merge($result, $params);
100
        return Url::toRoute($params, boolval($scheme));
101
102
    }
103
104
    /**
105
     * @param array $params
@@ 109-118 (lines=10) @@
106
     * @param bool|true $scheme
107
     * @return string
108
     */
109
    protected function createSuccessUrl(array $params = [], $scheme = true)
110
    {
111
        $result = [
112
            '/shop/payment/success',
113
            'id' => $this->transaction->id,
114
            'othash' => $this->transaction->generateHash(),
115
        ];
116
        $params = array_merge($result, $params);
117
        return Url::toRoute($params, boolval($scheme));
118
    }
119
120
    /**
121
     * @param array $params
@@ 125-135 (lines=11) @@
122
     * @param bool|true $scheme
123
     * @return string
124
     */
125
    protected function createFailUrl(array $params = [], $scheme = true)
126
    {
127
        $result = [
128
            '/shop/payment/fail',
129
            'id' => $this->transaction->id,
130
            'othash' => $this->transaction->generateHash(),
131
        ];
132
        $params = array_merge($result, $params);
133
        return Url::toRoute($params, boolval($scheme));
134
135
    }
136
137
    /**
138
     * @param array $params
@@ 142-151 (lines=10) @@
139
     * @param bool|true $scheme
140
     * @return string
141
     */
142
    protected function createCancelUrl(array $params = [], $scheme = true)
143
    {
144
        $result = [
145
            '/shop/payment/cancel',
146
            'id' => $this->transaction->id,
147
            'othash' => $this->transaction->generateHash(),
148
        ];
149
        $params = array_merge($result, $params);
150
        return Url::toRoute($params, boolval($scheme));
151
    }
152
153
    /**
154
     * @param PaymentType $type