PSR fixes

This commit is contained in:
Alex Bilbie 2014-12-27 21:38:01 +00:00
parent d0b2498b43
commit c56562b0b8
2 changed files with 10 additions and 10 deletions

View File

@ -11,8 +11,7 @@
namespace League\OAuth2\Server\Storage;
use League\OAuth2\Server\Entity\AccessTokenInterface;
use League\OAuth2\Server\Entity\MacKeyInterface;
use League\OAuth2\Server\Entity\AccessTokenEntity;
/**
* MacTokenInterface
@ -21,14 +20,15 @@ interface MacTokenInterface extends StorageInterface
{
/**
* Create a MAC key linked to an access token
* @param string $macKey
* @param \League\OAuth2\Server\Entity\AccessTokenInterface $accessToken
* @param string $macKey
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $accessTokenEntity
* @return void
*/
public function create($macKey, AccessTokenInterface $accessToken);
public function create($macKey, AccessTokenEntity $accessTokenEntity);
/**
* Get a MAC key by access token
* @param string $accessToken
* @param string $accessToken
* @return string
*/
public function getByAccessToken($accessToken);

View File

@ -120,8 +120,8 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
/**
* Prevent timing attack
* @param string $knownString
* @param string $userString
* @param string $knownString
* @param string $userString
* @return bool
*/
private function hash_equals($knownString, $userString)