src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php
protected function bitbucketToLocalUser($userProfile)
    {
        $localUser = $this->instantiateLocalUser();
        $localUser->setDisplayName($userProfile->displayName)
            ->setPassword(__FUNCTION__)
            ->setEmail($userProfile->email);
        $this->insert($localUser, 'github', $userProfile);

        return $localUser;
    }
protected function bitbucketToLocalUser($userProfile)
    {
        $localUser = $this->instantiateLocalUser();
        $localUser->setDisplayName($userProfile->displayName)
            ->setPassword(__FUNCTION__)
            ->setEmail($userProfile->email);
        $this->insert($localUser, 'github', $userProfile);

        return $localUser;
    }
protected function bitbucketToLocalUser ( $ userProfile ) { $ localUser = $ this -> instantiateLocalUser ( ) ; $ localUser -> setDisplayName ( $ userProfile -> displayName ) -> setPassword ( __FUNCTION__ ) -> setEmail ( $ userProfile -> email ) ; $ this -> insert ( $ localUser , 'github' , $ userProfile ) ; return $ localUser ; }
BitBucket to Local User
@param $userProfile
@return mixed
BitBucket to Local User