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 = 15-15 lines in 2 locations

src/Route4Me/Order.php 2 locations

@@ 164-178 (lines=15) @@
161
        return $response;
162
    }
163
    
164
    public function getRandomOrderId($offset, $limit)
165
    {
166
        $params = array('offset' => $offset, 'limit' => $limit);
167
        
168
        $orders = self::getOrders($params);
169
        
170
        if (is_null($orders)) {
171
            return null;
172
        }
173
        
174
        if (!isset($orders['results'])) {
175
            return null;
176
        }
177
        
178
        $randomIndex = rand(0, sizeof($orders['results']) - 1);
179
        
180
        $order = $orders['results'][$randomIndex];
181
        
@@ 185-199 (lines=15) @@
182
        return $order['order_id'];
183
    }
184
    
185
    public function getRandomOrder($offset, $limit)
186
    {
187
        $params = array('offset' => $offset, 'limit' => $limit);
188
        
189
        $orders = self::getOrders($params);
190
        
191
        if (is_null($orders)) {
192
            return null;
193
        }
194
        
195
        if (!isset($orders['results'])) {
196
            return null;
197
        }
198
        
199
        $randomIndex = rand(0, sizeof($orders['results']) - 1);
200
        
201
        $order = $orders['results'][$randomIndex];
202