Skip to content

Commit

Permalink
Cleanup with php-cs-fixer.
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Jul 6, 2015
1 parent 64d2972 commit fb7affe
Show file tree
Hide file tree
Showing 56 changed files with 184 additions and 182 deletions.
2 changes: 2 additions & 0 deletions .php-cs-fixer.php
Expand Up @@ -2,6 +2,7 @@

$fixers = array(
'-psr0',
'-no_empty_lines_after_phpdocs',
);

$finder = Symfony\CS\Finder\DefaultFinder::create()
Expand All @@ -17,6 +18,7 @@
->notName('phpunit.xml*');

return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->setUsingCache(false)
->fixers($fixers)
->finder($finder);
2 changes: 1 addition & 1 deletion src/Exception/AccessDeniedException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* AccessDeniedException
* AccessDeniedException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidClientException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* InvalidClientException
* InvalidClientException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidGrantException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* InvalidGrantException
* InvalidGrantException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidRequestException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* InvalidRequestException
* InvalidRequestException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidScopeException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* InvalidScopeException
* InvalidScopeException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ServerErrorException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* ServerErrorException
* ServerErrorException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/TemporarilyUnavailableException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* TemporarilyUnavailableException
* TemporarilyUnavailableException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/UnauthorizedClientException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* UnauthorizedClientException
* UnauthorizedClientException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/UnsupportedGrantTypeException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* UnsupportedGrantTypeException
* UnsupportedGrantTypeException.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/UnsupportedResponseTypeException.php
Expand Up @@ -12,7 +12,7 @@
namespace AuthBucket\OAuth2\Exception;

/**
* UnsupportedResponseType
* UnsupportedResponseType.
*
* @author Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
*/
Expand Down
28 changes: 14 additions & 14 deletions src/Model/AccessTokenInterface.php
Expand Up @@ -19,7 +19,7 @@
interface AccessTokenInterface extends ModelInterface
{
/**
* Set access_token
* Set access_token.
*
* @param string $accessToken
*
Expand All @@ -28,14 +28,14 @@ interface AccessTokenInterface extends ModelInterface
public function setAccessToken($accessToken);

/**
* Get access_token
* Get access_token.
*
* @return string
*/
public function getAccessToken();

/**
* Set token_type
* Set token_type.
*
* @param string $tokenType
*
Expand All @@ -44,14 +44,14 @@ public function getAccessToken();
public function setTokenType($tokenType);

/**
* Get token_type
* Get token_type.
*
* @return string
*/
public function getTokenType();

/**
* Set client_id
* Set client_id.
*
* @param string $clientId
*
Expand All @@ -60,14 +60,14 @@ public function getTokenType();
public function setClientId($clientId);

/**
* Get client_id
* Get client_id.
*
* @return string
*/
public function getClientId();

/**
* Set username
* Set username.
*
* @param string $username
*
Expand All @@ -76,30 +76,30 @@ public function getClientId();
public function setUsername($username);

/**
* Get username
* Get username.
*
* @return string
*/
public function getUsername();

/**
* Set expires
* Set expires.
*
* @param integer $expires
* @param int $expires
*
* @return AccessToken
*/
public function setExpires($expires);

/**
* Get expires
* Get expires.
*
* @return integer
* @return int
*/
public function getExpires();

/**
* Set scope
* Set scope.
*
* @param array $scope
*
Expand All @@ -108,7 +108,7 @@ public function getExpires();
public function setScope($scope);

/**
* Get scope
* Get scope.
*
* @return array
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Model/AuthorizeInterface.php
Expand Up @@ -19,7 +19,7 @@
interface AuthorizeInterface extends ModelInterface
{
/**
* Set client_id
* Set client_id.
*
* @param string $clientId
*
Expand All @@ -28,14 +28,14 @@ interface AuthorizeInterface extends ModelInterface
public function setClientId($clientId);

/**
* Get client_id
* Get client_id.
*
* @return string
*/
public function getClientId();

/**
* Set username
* Set username.
*
* @param string $username
*
Expand All @@ -44,14 +44,14 @@ public function getClientId();
public function setUsername($username);

/**
* Get username
* Get username.
*
* @return string
*/
public function getUsername();

/**
* Set scope
* Set scope.
*
* @param array $scope
*
Expand All @@ -60,7 +60,7 @@ public function getUsername();
public function setScope($scope);

/**
* Get scope
* Get scope.
*
* @return array
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Model/ClientInterface.php
Expand Up @@ -19,7 +19,7 @@
interface ClientInterface extends ModelInterface
{
/**
* Set client_id
* Set client_id.
*
* @param string $clientId
*
Expand All @@ -28,14 +28,14 @@ interface ClientInterface extends ModelInterface
public function setClientId($clientId);

/**
* Get client_id
* Get client_id.
*
* @return string
*/
public function getClientId();

/**
* Set client_secret
* Set client_secret.
*
* @param string $clientSecret
*
Expand All @@ -44,14 +44,14 @@ public function getClientId();
public function setClientSecret($clientSecret);

/**
* Get client_secret
* Get client_secret.
*
* @return string
*/
public function getClientSecret();

/**
* Set redirect_uri
* Set redirect_uri.
*
* @param string $redirectUri
*
Expand All @@ -60,7 +60,7 @@ public function getClientSecret();
public function setRedirectUri($redirectUri);

/**
* Get redirect_uri
* Get redirect_uri.
*
* @return string
*/
Expand Down

0 comments on commit fb7affe

Please sign in to comment.