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 = 14-16 lines in 5 locations

src/Route4Me/Geocoding.php 1 location

@@ 48-63 (lines=16) @@
45
        return $fgCoding;
46
    }
47
    
48
    public static function reverseGeocoding($params)
49
    {
50
        $query = array(
51
                'format' => isset($params['format']) ? $params['format']: null,
52
                'addresses' => isset($params['addresses']) ? $params['addresses'] : null,
53
                'detailed' => isset($params['detailed']) ? $params['detailed'] : null,
54
            );
55
56
        $fgcoding = Route4Me::makeRequst(array(
57
            'url'    => Endpoint::GEOCODER,
58
            'method' => 'POST',
59
            'query'  => $query
60
        ));
61
        
62
        return $fgcoding;
63
    }
64
    
65
    public static function getStreetData($params)
66
    {

src/Route4Me/OptimizationProblem.php 1 location

@@ 128-142 (lines=15) @@
125
        return self::update((array)$param);
126
    }
127
128
    public static function update($params)
129
    {
130
        $optimize = Route4Me::makeRequst(array(
131
            'url'    => Endpoint::OPTIMIZATION_PROBLEM,
132
            'method' => 'PUT',
133
            'query'  => array(
134
                'optimization_problem_id' => isset($params['optimization_problem_id'])
135
                                               ? $params['optimization_problem_id'] : null,
136
                'addresses'  => isset($params['addresses']) ? $params['addresses'] : null,
137
                'reoptimize' => isset($params['reoptimize']) ? $params['reoptimize'] : null,
138
            )
139
        ));
140
        
141
        return $optimize;
142
    }
143
144
    public function getOptimizationId()
145
    {

src/Route4Me/Order.php 1 location

@@ 133-147 (lines=15) @@
130
        return $response;
131
    }
132
    
133
    public static function addOrder2Optimization($params,$body)
134
    {
135
        $response = Route4Me::makeRequst(array(
136
            'url'    => Endpoint::OPTIMIZATION_PROBLEM,
137
            'method' => 'PUT',
138
            'query'  => array(
139
                'optimization_problem_id' =>  isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null,
140
                'redirect'                => isset($params['redirect']) ? $params['redirect'] : null,
141
                'device_type'             => isset($params['device_type']) ? $params['device_type'] : null
142
            ),
143
            'body'  => (array)$body
144
        ));
145
146
        return $response;
147
    }
148
    
149
    public static function getOrder($params)
150
    {

src/Route4Me/Route.php 1 location

@@ 176-190 (lines=15) @@
173
        return $result;
174
    }
175
    
176
    public function resequenceAllAddresses($params)
177
    {
178
        $result = Route4Me::makeRequst(array(
179
            'url'    => Endpoint::REOPTIMIZE_V3_2,
180
            'method' => 'GET',
181
            'query'  => array(
182
                'api_key'              => Route4Me::getApiKey(),
183
                'route_id'             => isset($params['route_id']) ? $params['route_id'] : null,
184
                'disable_optimization' => isset($params['disable_optimization']) ? $params['disable_optimization'] : null,
185
                'optimize'             => isset($params['optimize']) ? $params['optimize'] : null,
186
            )
187
        ));
188
        
189
        return $result;
190
    }
191
192
    public function mergeRoutes($params)
193
    {

src/Route4Me/Vehicle.php 1 location

@@ 78-91 (lines=14) @@
75
        return $vehicle;
76
    }
77
    
78
    public static function getVehicles($params)
79
    {
80
        $response = Route4Me::makeRequst(array(
81
            'url'    => Endpoint::VEHICLE_V4,
82
            'method' => 'GET',
83
            'query'  => array(
84
                'with_pagination'  => isset($params['with_pagination']) ? $params['with_pagination'] : null,
85
                'page'             => isset($params['page']) ? $params['page'] : null,
86
                'perPage'          => isset($params['perPage']) ? $params['perPage'] : null,
87
            )
88
        ));
89
90
        return $response;
91
    }
92
    
93
    public function getRandomVehicleId($page,$perPage)
94
    {