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 = 8-9 lines in 2 locations

lib/route4me/optimization_problem.rb 2 locations

@@ 30-38 (lines=9) @@
27
      Route4me.request(:post, self.url, get: get, json: json)
28
    end
29
30
    def self.update(params={})
31
      json = Util.extract(params, [:addresses, :parameters])
32
      get = Util.extract(params, [
33
        :optimization_problem_id, :directions, :format,
34
        :route_path_output, :reoptimize
35
      ])
36
37
      Route4me.request(:post, self.url, get: get, json: json)
38
    end
39
  end
40
end
41
@@ 21-28 (lines=8) @@
18
      end
19
    end
20
21
    def self.optimize(params={})
22
      json = Util.extract(params, [:addresses, :parameters])
23
      get = Util.extract(params, [
24
        :directions, :format, :route_path_output, :optimized_callback_url
25
      ])
26
27
      Route4me.request(:post, self.url, get: get, json: json)
28
    end
29
30
    def self.update(params={})
31
      json = Util.extract(params, [:addresses, :parameters])