original_string: protected function getExistingIdentity( UserResponseInterface $response )
      {
          $repo = $this->om->getRepository( $this->userIdentityClass );   // wrong class
          return $repo->findOneBy( array(
              'identifier' => $response->getUsername(),
              'type' => $response->getResourceOwner()->getName(),
          ));
      }
code: protected function getExistingIdentity( UserResponseInterface $response )
      {
          $repo = $this->om->getRepository( $this->userIdentityClass );   // wrong class
          return $repo->findOneBy( array(
              'identifier' => $response->getUsername(),
              'type' => $response->getResourceOwner()->getName(),
          ));
      }
code_tokens: protected function getExistingIdentity ( UserResponseInterface $ response ) { $ repo = $ this -> om -> getRepository ( $ this -> userIdentityClass ) ; // wrong class return $ repo -> findOneBy ( array ( 'identifier' => $ response -> getUsername ( ) , 'type' => $ response -> getResourceOwner ( ) -> getName ( ) , ) ) ; }
docstring: Checks whether the authenticating Identity already exists
  
  @param \HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response
  @return \Userfriendly\Bundle\SocialUserBundle\Model\UserIdentity
docstring_tokens: Checks whether the authenticating Identity already exists