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 classes/OAuthModule.php, line 350 #211

Closed sergeychernyshev closed 8 years ago

sergeychernyshev commented 8 years ago

in classes/OAuthModule.php, line 350

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

     */
    public function addUserOAuthIdentity($user, $identity, $oauth_user_id) {
        $db = UserConfig::getDB();

        $user_id = $user->getID();
        $old_oauth_user_id = null;

        $server_unique_id = $identity['id'];
        $serialized_userinfo = serialize($identity);

        $module = $this->getID();

Posted from SensioLabsInsight