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 = 26-27 lines in 2 locations

src/Route4Me/Member.php 2 locations

@@ 135-160 (lines=26) @@
132
        return $response;
133
    }
134
    
135
    public static function createMember($body)
136
    {
137
        $response = Route4Me::makeRequst(array(
138
            'url'    => Endpoint::USER_V4,
139
            'method' => 'POST',
140
            'body'   => array(
141
                'HIDE_ROUTED_ADDRESSES'  => isset($body->HIDE_ROUTED_ADDRESSES) ? $body->HIDE_ROUTED_ADDRESSES : null,
142
                'member_phone'           => isset($body->member_phone) ? $body->member_phone : null,
143
                'member_zipcode'         => isset($body->member_zipcode) ? $body->member_zipcode : null,
144
                'route_count'            => isset($body->route_count) ? $body->route_count : null,
145
                'member_email'           => isset($body->member_email) ? $body->member_email : null,
146
                'HIDE_VISITED_ADDRESSES' => isset($body->HIDE_VISITED_ADDRESSES) ? $body->HIDE_VISITED_ADDRESSES : null,
147
                'READONLY_USER'          => isset($body->READONLY_USER) ? $body->READONLY_USER : null,
148
                'member_type'            => isset($body->member_type) ? $body->member_type : null,
149
                'date_of_birth'          => isset($body->date_of_birth) ? $body->date_of_birth : null,
150
                'member_first_name'      => isset($body->member_first_name) ? $body->member_first_name : null,
151
                'member_password'        => isset($body->member_password) ? $body->member_password : null,
152
                'HIDE_NONFUTURE_ROUTES'  => isset($body->HIDE_NONFUTURE_ROUTES) ? $body->HIDE_NONFUTURE_ROUTES : null,
153
                'member_last_name'       => isset($body->member_last_name) ? $body->member_last_name : null,
154
                'SHOW_ALL_VEHICLES'      => isset($body->SHOW_ALL_VEHICLES) ? $body->SHOW_ALL_VEHICLES : null,
155
                'SHOW_ALL_DRIVERS'       => isset($body->SHOW_ALL_DRIVERS) ? $body->SHOW_ALL_DRIVERS : null
156
            )
157
        ));
158
        
159
        return $response;
160
    }
161
162
    public static function getRandomMemberByType($memberType)
163
    {
@@ 185-211 (lines=27) @@
182
    }
183
184
185
    public static function updateMember($body)
186
    {
187
        $response = Route4Me::makeRequst(array(
188
            'url'    => Endpoint::USER_V4,
189
            'method' => 'PUT',
190
            'body'   => array(
191
                'member_id'              => isset($body->member_id) ? $body->member_id : null,
192
                'member_phone'           => isset($body->member_phone) ? $body->member_phone : null,
193
                'HIDE_ROUTED_ADDRESSES'  => isset($body->HIDE_ROUTED_ADDRESSES) ? $body->HIDE_ROUTED_ADDRESSES : null,
194
                'member_zipcode'         => isset($body->member_zipcode) ? $body->member_zipcode : null,
195
                'route_count'            => isset($body->route_count) ? $body->route_count : null,
196
                'member_email'           => isset($body->member_email) ? $body->member_email : null,
197
                'HIDE_VISITED_ADDRESSES' => isset($body->HIDE_VISITED_ADDRESSES) ? $body->HIDE_VISITED_ADDRESSES : null,
198
                'READONLY_USER'          => isset($body->READONLY_USER) ? $body->READONLY_USER : null,
199
                'date_of_birth'          => isset($body->date_of_birth) ? $body->date_of_birth : null,
200
                'member_first_name'      => isset($body->member_first_name) ? $body->member_first_name : null,
201
                'member_password'        => isset($body->member_password) ? $body->member_password : null,
202
                'HIDE_NONFUTURE_ROUTES'  => isset($body->HIDE_NONFUTURE_ROUTES) ? $body->HIDE_NONFUTURE_ROUTES : null,
203
                'member_last_name'       => isset($body->member_last_name) ? $body->member_last_name : null,
204
                'SHOW_ALL_VEHICLES'      => isset($body->SHOW_ALL_VEHICLES) ? $body->SHOW_ALL_VEHICLES : null,
205
                'SHOW_ALL_DRIVERS'       => isset($body->SHOW_ALL_DRIVERS) ? $body->SHOW_ALL_DRIVERS : null
206
            )
207
208
        ));
209
        
210
        return $response;
211
    }
212
213
    public static function deleteMember($body)
214
    {