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-10 lines in 6 locations

lib/Ogone/AbstractPaymentRequest.php 2 locations

@@ 129-138 (lines=10) @@
126
        'ZAR'
127
    );
128
129
    public function setOrderid($orderid)
130
    {
131
        if (strlen($orderid) > 40) {
132
            throw new InvalidArgumentException("Orderid cannot be longer than 40 characters");
133
        }
134
        if (preg_match('/[^a-zA-Z0-9_-]/', $orderid)) {
135
            throw new InvalidArgumentException("Order id cannot contain special characters");
136
        }
137
        $this->parameters['orderid'] = $orderid;
138
    }
139
140
    /** Friend alias for setCom() */
141
    public function setOrderDescription($orderDescription)
@@ 227-236 (lines=10) @@
224
    /**
225
     * @see http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm
226
     */
227
    public function setOwnercty($ownercty)
228
    {
229
        if (strlen($ownercty) > 2) {
230
            throw new InvalidArgumentException("Owner country code is too long");
231
        }
232
        if (!preg_match('/^[A-Z]{2}$/', strtoupper($ownercty))) {
233
            throw new InvalidArgumentException("Illegal country code");
234
        }
235
        $this->parameters['ownercty'] = strtoupper($ownercty);
236
    }
237
238
    /** Alias for setOwnertelno() */
239
    public function setOwnerPhone($ownerphone)

lib/Ogone/Subscription/SubscriptionPaymentRequest.php 4 locations

@@ 38-47 (lines=10) @@
35
     *
36
     * @param string $subscriptionId (maxlength 50)
37
     */
38
    public function setSubscriptionId($subscriptionId)
39
    {
40
        if (strlen($subscriptionId) > 50) {
41
            throw new InvalidArgumentException("Subscription id cannot be longer than 50 characters");
42
        }
43
        if (preg_match('/[^a-zA-Z0-9_-]/', $subscriptionId)) {
44
            throw new InvalidArgumentException("Subscription id cannot contain special characters");
45
        }
46
        $this->parameters['subscription_id'] = $subscriptionId;
47
    }
48
49
    /**
50
     * Amount of the subscription (can be different from the amount of the original transaction)
@@ 77-86 (lines=10) @@
74
     *
75
     * @param string $description (maxlength 100)
76
     */
77
    public function setSubscriptionDescription($description)
78
    {
79
        if (strlen($description) > 100) {
80
            throw new InvalidArgumentException("Subscription description cannot be longer than 100 characters");
81
        }
82
        if (preg_match('/[^a-zA-Z0-9_ -]/', $description)) {
83
            throw new InvalidArgumentException("Subscription description cannot contain special characters");
84
        }
85
        $this->parameters['sub_com'] = $description;
86
    }
87
88
    /**
89
     * OrderID for subscription payments
@@ 94-103 (lines=10) @@
91
     *
92
     * @param string $orderId (maxlength 40)
93
     */
94
    public function setSubscriptionOrderId($orderId)
95
    {
96
        if (strlen($orderId) > 40) {
97
            throw new InvalidArgumentException("Subscription order id cannot be longer than 40 characters");
98
        }
99
        if (preg_match('/[^a-zA-Z0-9_-]/', $orderId)) {
100
            throw new InvalidArgumentException("Subscription order id cannot contain special characters");
101
        }
102
        $this->parameters['sub_orderid'] = $orderId;
103
    }
104
105
    /**
106
     * Set subscription payment interval
@@ 159-168 (lines=10) @@
156
     *
157
     * @param string $comment
158
     */
159
    public function setSubscriptionComment($comment)
160
    {
161
        if (strlen($comment) > 200) {
162
            throw new InvalidArgumentException("Subscription comment cannot be longer than 200 characters");
163
        }
164
        if (preg_match('/[^a-zA-Z0-9_ -]/', $comment)) {
165
            throw new InvalidArgumentException("Subscription comment cannot contain special characters");
166
        }
167
        $this->parameters['sub_comment'] = $comment;
168
    }
169
170
    public function getRequiredFields()
171
    {