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

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