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

src/Route4Me/Geocoding.php 2 locations

@@ 65-89 (lines=25) @@
62
        return $fgcoding;
63
    }
64
    
65
    public static function getStreetData($params)
66
    {
67
        $url_query = Endpoint::STREET_DATA;
68
        
69
        if (isset($params['pk'])) {
70
            $url_query.=$params['pk'].'/';
71
        }
72
        
73
        if (isset($params['offset'])) {
74
            $url_query.=$params['offset'].'/';
75
        }
76
        
77
        if (isset($params['limit'])) {
78
            $url_query.=$params['limit'].'/';
79
        }
80
81
        $query = array();
82
        
83
        $response = Route4Me::makeUrlRequst($url_query, array(
84
            'method' => 'GET',
85
            'query'  => $query
86
        ));
87
        
88
        return $response;
89
    }
90
    
91
    public static function getZipCode($params)
92
    {
@@ 91-115 (lines=25) @@
88
        return $response;
89
    }
90
    
91
    public static function getZipCode($params)
92
    {
93
        $url_query = Endpoint::STREET_DATA_ZIPCODE;
94
        
95
        if (isset($params['zipcode'])) {
96
            $url_query.=$params['zipcode'].'/';
97
        }
98
        
99
        if (isset($params['offset'])) {
100
            $url_query.=$params['offset'].'/';
101
        }
102
        
103
        if (isset($params['limit'])) {
104
            $url_query.=$params['limit'].'/';
105
        }
106
107
        $query = array();
108
        
109
        $response = Route4Me::makeUrlRequst($url_query, array(
110
            'method' => 'GET',
111
            'query'  => $query
112
        ));
113
        
114
        return $response;
115
    }
116
    
117
    public static function getService($params)
118
    {