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

src/Route4Me/Member.php 1 location

@@ 115-133 (lines=19) @@
112
        return $response;
113
    }
114
    
115
    public static function addDeviceRecord($body)
116
    {
117
        $response = Route4Me::makeRequst(array(
118
            'url'    => Endpoint::VERIFY_DEVICE_LICENSE,
119
            'method' => 'POST',
120
            'query'  => array(
121
                'device_id'   => isset($body->device_id)   ? $body->device_id : null,
122
                'device_type' => isset($body->device_type) ? $body->device_type : null,
123
            ),
124
            'body'   => array(
125
                'device_id'   => isset($body->device_id)   ? $body->device_id : null,
126
                'device_type' => isset($body->device_type) ? $body->device_type : null,
127
                'format'      => isset($body->format)      ? $body->format : null
128
            )
129
130
        ));
131
        
132
        return $response;
133
    }
134
    
135
    public static function createMember($body)
136
    {

src/Route4Me/Territory.php 1 location

@@ 103-122 (lines=20) @@
100
		return $result;
101
	}
102
	
103
	public function updateTerritory($params)
104
	{
105
	    //var_dump($params); die("");
106
		$response = Route4Me::makeRequst(array(
107
			'url'    => Endpoint::TERRITORY_V4,
108
			'method' => 'PUT',
109
			'query'  => array(
110
                'territory_id'  => isset($params->territory_id) ? $params->territory_id : null
111
            ),
112
            'body'   => array(
113
                'territory_name'   => isset($params->territory_name) ? $params->territory_name : null,
114
                'member_id'        => isset($params->member_id) ? $params->member_id : null,
115
                'territory_color'  => isset($params->territory_color) ? $params->territory_color : null,
116
                'territory'        => isset($params->territory) ? $params->territory : null
117
            ) 
118
119
		));
120
121
		return $response;
122
	}
123
}
124
125