Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Borovov <[email protected]>
  • Loading branch information
eugene-borovov committed Jul 12, 2021
1 parent 21accbc commit 3de6f68
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions examples/public/auth_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@

// Setup EventDispatcher
$dispatcher = new EventDispatcher();
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
// Handle client authentication failure
});
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
// Handle access token issue
});
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
// Handle refresh token issue
});
$server->useEventDispatcher($dispatcher);
Expand Down
2 changes: 1 addition & 1 deletion examples/public/client_credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// Setup EventDispatcher
$dispatcher = new EventDispatcher();
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
// Handle client authentication failure
});
$server->useEventDispatcher($dispatcher);
Expand Down
2 changes: 1 addition & 1 deletion examples/public/implicit.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// Setup EventDispatcher
$dispatcher = new EventDispatcher();
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
// Handle client authentication failure
});
$server->useEventDispatcher($dispatcher);
Expand Down
8 changes: 4 additions & 4 deletions examples/public/middleware_use.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@

// Setup EventDispatcher
$dispatcher = new EventDispatcher();
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
// Handle client authentication failure
});
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function(RefreshTokenClientFailed $event){
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function (RefreshTokenClientFailed $event) {
// Handle refresh token client failure
});
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
// Handle access token issue
});
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
// Handle refresh token issue
});
$server->useEventDispatcher($dispatcher);
Expand Down
6 changes: 3 additions & 3 deletions examples/public/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@

// Setup EventDispatcher
$dispatcher = new EventDispatcher();
$dispatcher->subscribeTo(UserAuthenticationFailed::class, function(UserAuthenticationFailed $event){
$dispatcher->subscribeTo(UserAuthenticationFailed::class, function (UserAuthenticationFailed $event) {
// Handle user authentication failure
});
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
// Handle access token issue
});
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
// Handle refresh token issue
});
$server->useEventDispatcher($dispatcher);
Expand Down
6 changes: 3 additions & 3 deletions examples/public/refresh_token.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@

// Setup EventDispatcher
$dispatcher = new EventDispatcher();
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function(RefreshTokenClientFailed $event){
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function (RefreshTokenClientFailed $event) {
// Handle refresh token client failure
});
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
// Handle access token issue
});
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
// Handle refresh token issue
});
$server->useEventDispatcher($dispatcher);
Expand Down
2 changes: 1 addition & 1 deletion src/Events/AbstractEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ public function getOccuredOn(): \DateTimeImmutable
{
return $this->occuredOn;
}
}
}
2 changes: 1 addition & 1 deletion src/Events/AccessTokenIssued.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public function getAccessToken(): AccessTokenEntityInterface
{
return $this->accessToken;
}
}
}
2 changes: 1 addition & 1 deletion src/Events/ClientAuthenticationFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public function getClientId(): ?string
{
return $this->clientId;
}
}
}
2 changes: 1 addition & 1 deletion src/Events/EventDispatcherAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
interface EventDispatcherAwareInterface
{
public function useEventDispatcher(?EventDispatcherInterface $dispatcher): void;
}
}
2 changes: 1 addition & 1 deletion src/Events/EventDispatcherAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ protected function dispatchEvent(object $event): object

return $event;
}
}
}
2 changes: 1 addition & 1 deletion src/Events/RefreshTokenClientFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ public function getRefreshTokenData(): array
{
return $this->refreshTokenData;
}
}
}
2 changes: 1 addition & 1 deletion src/Events/RefreshTokenIssued.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public function getRefreshToken(): RefreshTokenEntityInterface
{
return $this->refreshToken;
}
}
}
2 changes: 1 addition & 1 deletion src/Events/UserAuthenticationFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public function getUsername(): ?string
{
return $this->username;
}
}
}
2 changes: 1 addition & 1 deletion src/Grant/AbstractGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected function validateClient(ServerRequestInterface $request)
* getClientEntity might return null. By contrast, this method will
* always either return a ClientEntityInterface or throw.
*
* @param string $clientId
* @param string $clientId
* @param ServerRequestInterface $request
*
* @return ClientEntityInterface
Expand Down

0 comments on commit 3de6f68

Please sign in to comment.