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

@@ 182-196 (lines=15) @@
179
        return $response;
180
    }
181
    
182
    public function getRandomOrderId($offset,$limit)
183
    {
184
        $params = array('offset' => $offset, 'limit' => $limit);
185
        
186
        $orders = self::getOrders($params);
187
        
188
        if (is_null($orders)) return null;
189
        if (!isset($orders['results'])) return null;
190
        
191
        $randomIndex = rand(0, sizeof($orders['results'])-1);
192
        
193
        $order = $orders['results'][$randomIndex];
194
        
195
        return $order['order_id'];
196
    }
197
    
198
    public function getRandomOrder($offset,$limit)
199
    {
@@ 198-212 (lines=15) @@
195
        return $order['order_id'];
196
    }
197
    
198
    public function getRandomOrder($offset,$limit)
199
    {
200
        $params = array('offset' => $offset, 'limit' => $limit);
201
        
202
        $orders = self::getOrders($params);
203
        
204
        if (is_null($orders)) return null;
205
        if (!isset($orders['results'])) return null;
206
        
207
        $randomIndex = rand(0, sizeof($orders['results'])-1);
208
        
209
        $order = $orders['results'][$randomIndex];
210
        
211
        return $order;
212
    }
213
    
214
    public static function removeOrder($params)
215
    {