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 = 12-21 lines in 4 locations

src/Route4Me/AvoidanceZone.php 1 location

@@ 44-55 (lines=12) @@
41
			return $avoidancezoneparameters;
42
		}
43
		
44
		public static function getAvoidanceZone($territory_id)
45
	    {
46
	        $avoidancezone = Route4Me::makeRequst(array(
47
	            'url'    => self::$apiUrl,
48
	            'method' => 'GET',
49
	            'query'  => array(
50
	                'territory_id'             => $territory_id
51
	            )
52
	        ));
53
	
54
	        return $avoidancezone;
55
	    }
56
		
57
		public static function getAvoidanceZones($params)
58
	    {

src/Route4Me/AddressBookLocation.php 2 locations

@@ 48-60 (lines=13) @@
45
			return $addressbooklocation;
46
		}
47
		
48
		public static function getAddressBookLocation($addressId)
49
	    {
50
	    	$ablocations = Route4Me::makeRequst(array(
51
	            'url'    => self::$apiUrl,
52
	            'method' => 'GET',
53
	            'query'  => array(
54
	                'query' => $addressId,
55
	                'limit' => 30
56
	            )
57
	        ));
58
59
			return $ablocations;
60
		}
61
		
62
		public static function searchRoutedLocation($params)
63
	    {
@@ 93-104 (lines=12) @@
90
			return $ablocations;
91
		}
92
		
93
		public static function getAddressBookLocationsByIds($ids)
94
	    {
95
	    	$ablocations = Route4Me::makeRequst(array(
96
	            'url'    => self::$apiUrl,
97
	            'method' => 'GET',
98
	            'query'  => array(
99
	                'address_id' => $ids
100
	            )
101
	        ));
102
103
			return $ablocations;
104
		}
105
		
106
		public static function addAdressBookLocation($params)
107
	    {

src/Route4Me/Route.php 1 location

@@ 361-381 (lines=21) @@
358
        return $result;
359
	}
360
361
    public function delete($route_id)
362
    {
363
        $result = Route4Me::makeRequst(array(
364
            'url'    => self::$apiUrl,
365
            'method' => 'DELETE',
366
            'query'  => array( 'route_id' => $route_id )
367
        ));
368
		
369
		// The code below doesn't work, altough this method is described as workable in REST API 
370
		/*
371
		$result = Route4Me::makeRequst(array(
372
            'url'    => self::$apiUrlDelete,
373
            'method' => 'GET',
374
            'query'  => array(
375
            	'api_key' => Route4Me::getApiKey(),
376
                'route_id' => $route_id,
377
            )
378
        ));
379
		*/
380
        return $result;
381
    }
382
	
383
	public function GetAddressesFromRoute($route_id)
384
	{