Skip to content

Commit 3de6f68

Browse files
Fix code style
Signed-off-by: Eugene Borovov <[email protected]>
1 parent 21accbc commit 3de6f68

15 files changed

+24
-24
lines changed

examples/public/auth_code.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252

5353
// Setup EventDispatcher
5454
$dispatcher = new EventDispatcher();
55-
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
55+
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
5656
// Handle client authentication failure
5757
});
58-
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
58+
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
5959
// Handle access token issue
6060
});
61-
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
61+
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
6262
// Handle refresh token issue
6363
});
6464
$server->useEventDispatcher($dispatcher);

examples/public/client_credentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
// Setup EventDispatcher
4848
$dispatcher = new EventDispatcher();
49-
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
49+
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
5050
// Handle client authentication failure
5151
});
5252
$server->useEventDispatcher($dispatcher);

examples/public/implicit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
// Setup EventDispatcher
4848
$dispatcher = new EventDispatcher();
49-
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
49+
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
5050
// Handle client authentication failure
5151
});
5252
$server->useEventDispatcher($dispatcher);

examples/public/middleware_use.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@
5555

5656
// Setup EventDispatcher
5757
$dispatcher = new EventDispatcher();
58-
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function(ClientAuthenticationFailed $event){
58+
$dispatcher->subscribeTo(ClientAuthenticationFailed::class, function (ClientAuthenticationFailed $event) {
5959
// Handle client authentication failure
6060
});
61-
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function(RefreshTokenClientFailed $event){
61+
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function (RefreshTokenClientFailed $event) {
6262
// Handle refresh token client failure
6363
});
64-
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
64+
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
6565
// Handle access token issue
6666
});
67-
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
67+
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
6868
// Handle refresh token issue
6969
});
7070
$server->useEventDispatcher($dispatcher);

examples/public/password.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333

3434
// Setup EventDispatcher
3535
$dispatcher = new EventDispatcher();
36-
$dispatcher->subscribeTo(UserAuthenticationFailed::class, function(UserAuthenticationFailed $event){
36+
$dispatcher->subscribeTo(UserAuthenticationFailed::class, function (UserAuthenticationFailed $event) {
3737
// Handle user authentication failure
3838
});
39-
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
39+
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
4040
// Handle access token issue
4141
});
42-
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
42+
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
4343
// Handle refresh token issue
4444
});
4545
$server->useEventDispatcher($dispatcher);

examples/public/refresh_token.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848

4949
// Setup EventDispatcher
5050
$dispatcher = new EventDispatcher();
51-
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function(RefreshTokenClientFailed $event){
51+
$dispatcher->subscribeTo(RefreshTokenClientFailed::class, function (RefreshTokenClientFailed $event) {
5252
// Handle refresh token client failure
5353
});
54-
$dispatcher->subscribeTo(AccessTokenIssued::class, function(AccessTokenIssued $event){
54+
$dispatcher->subscribeTo(AccessTokenIssued::class, function (AccessTokenIssued $event) {
5555
// Handle access token issue
5656
});
57-
$dispatcher->subscribeTo(RefreshTokenIssued::class, function(RefreshTokenIssued $event){
57+
$dispatcher->subscribeTo(RefreshTokenIssued::class, function (RefreshTokenIssued $event) {
5858
// Handle refresh token issue
5959
});
6060
$server->useEventDispatcher($dispatcher);

src/Events/AbstractEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ public function getOccuredOn(): \DateTimeImmutable
3636
{
3737
return $this->occuredOn;
3838
}
39-
}
39+
}

src/Events/AccessTokenIssued.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ public function getAccessToken(): AccessTokenEntityInterface
2323
{
2424
return $this->accessToken;
2525
}
26-
}
26+
}

src/Events/ClientAuthenticationFailed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public function getClientId(): ?string
2222
{
2323
return $this->clientId;
2424
}
25-
}
25+
}

src/Events/EventDispatcherAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
interface EventDispatcherAwareInterface
88
{
99
public function useEventDispatcher(?EventDispatcherInterface $dispatcher): void;
10-
}
10+
}

0 commit comments

Comments
 (0)