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/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
    {

src/Route4Me/OptimizationProblem.php 1 location

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

src/Route4Me/Order.php 1 location

@@ 116-130 (lines=15) @@
113
        return $response;
114
    }
115
    
116
    public static function addOrder2Optimization($params, $body)
117
    {
118
        $response = Route4Me::makeRequst(array(
119
            'url'    => Endpoint::OPTIMIZATION_PROBLEM,
120
            'method' => 'PUT',
121
            'query'  => array(
122
                'optimization_problem_id' =>  isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null,
123
                'redirect'                => isset($params['redirect']) ? $params['redirect'] : null,
124
                'device_type'             => isset($params['device_type']) ? $params['device_type'] : null
125
            ),
126
            'body'  => (array)$body
127
        ));
128
129
        return $response;
130
    }
131
    
132
    public static function getOrder($params)
133
    {

src/Route4Me/Route.php 1 location

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