StartupAPI / users

:zap: User management tool to be used in on-line projects. Includes admin dashboard.
http://www.StartupAPI.com/
MIT License
60 stars 24 forks source link

[Insight] Unused method, property, variable or parameter - in modules/google_oauth/index.php, line 98 #216

Closed sergeychernyshev closed 8 years ago

sergeychernyshev commented 8 years ago

in modules/google_oauth/index.php, line 98

This self_url local variable is declared but never used. You should remove it.

    public function getIdentity($oauth_user_id) {
        // get meetup user id
        $request = new OAuthRequester('https://www.google.com/m8/feeds/groups/default/thin', 'GET');
        $result = $request->doRequest($oauth_user_id);

        $self_url = null;

        if ($result['code'] == 200) {
            $raw_xml = $result['body'];
            $xml = new SimpleXMLElement($raw_xml);

Posted from SensioLabsInsight