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

src/Route4Me/AddressBookLocation.php 1 location

@@ 62-77 (lines=16) @@
59
			return $ablocations;
60
		}
61
		
62
		public static function searchRoutedLocation($params)
63
	    {
64
	    	$result= Route4Me::makeRequst(array(
65
	            'url'    => self::$apiUrl,
66
	            'method' => 'GET',
67
	            'query'  => array(
68
	                'display' => isset($params['display']) ? $params['display']: null,
69
	                'query' => isset($params['query']) ? $params['query']: null,
70
	                'fields' => isset($params['fields']) ? $params['fields']: null,
71
	                'limit' => isset($params['limit']) ? $params['limit']: null,
72
	                'offset' => isset($params['offset']) ? $params['offset'] : null,
73
	            )
74
	        ));
75
76
			return $result;
77
		}
78
		
79
		public static function getAddressBookLocations($params)
80
	    {

src/Route4Me/Route.php 1 location

@@ 431-448 (lines=18) @@
428
		
429
	}
430
	
431
	public function GetTrackingHistoryFromTimeRange(array $params)
432
	{
433
		$route = Route4Me::makeRequst(array(
434
            'url'    => self::$apiUrlDeviceLocation,
435
            'method' => 'GET',
436
            'query'  => array(
437
            	'api_key' => Route4Me::getApiKey(),
438
                'route_id' => isset($params['route_id']) ? $params['route_id'] : null,
439
                'format' => isset($params['format']) ? $params['format'] : null,
440
                'time_period' => isset($params['time_period']) ? $params['time_period'] : null,
441
                'start_date' => isset($params['start_date']) ? $params['start_date'] : null,
442
                'end_date' => isset($params['end_date']) ? $params['end_date'] : null
443
                )
444
        ));
445
446
        return $route;
447
		
448
	}
449
	
450
	public function GetAssetTracking(array $params)
451
	{