Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
src/Bundle/Server/Model/PreConfiguredAuthorizationRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * {@inheritdoc}
58 58
      */
59
-    public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ?ResourceServerId $resourceServerId): PreConfiguredAuthorization
59
+    public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : PreConfiguredAuthorization
60 60
     {
61 61
         $hash = $this->calculateHash($userAccountId, $clientId, $scopes, $resourceServerId);
62 62
         $preConfiguredAuthorization = PreConfiguredAuthorization::createEmpty();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * {@inheritdoc}
70 70
      */
71
-    public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ?ResourceServerId $resourceServerId): ?PreConfiguredAuthorization
71
+    public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : ? PreConfiguredAuthorization
72 72
     {
73 73
         $hash = $this->calculateHash($userAccountId, $clientId, $scopes, $resourceServerId);
74 74
         $preConfiguredAuthorization = $this->getFromCache($hash);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @return PreConfiguredAuthorization|null
116 116
      */
117
-    private function getFromCache(PreConfiguredAuthorizationId $preConfiguredAuthorizationId): ?PreConfiguredAuthorization
117
+    private function getFromCache(PreConfiguredAuthorizationId $preConfiguredAuthorizationId): ? PreConfiguredAuthorization
118 118
     {
119 119
         $itemKey = sprintf('oauth2-pre_configured_authorization-%s', $preConfiguredAuthorizationId->getValue());
120 120
         if (null !== $this->cache) {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      *
150 150
      * @return PreConfiguredAuthorizationId
151 151
      */
152
-    private function calculateHash(ResourceOwnerId $resourceOwnerId, ClientId $clientId, array $scope, ?ResourceServerId $resourceServerId): PreConfiguredAuthorizationId
152
+    private function calculateHash(ResourceOwnerId $resourceOwnerId, ClientId $clientId, array $scope, ? ResourceServerId $resourceServerId) : PreConfiguredAuthorizationId
153 153
     {
154 154
         return PreConfiguredAuthorizationId::create(hash(
155 155
             'sha512',
Please login to merge, or discard this patch.
src/Bundle/Server/Model/AuthCodeRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * {@inheritdoc}
80 80
      */
81
-    public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): AuthCode
81
+    public function create(ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, DataBag $parameters, DataBag $metadatas, array $scopes, bool $withRefreshToken, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AuthCode
82 82
     {
83 83
         if (null === $expiresAt) {
84 84
             $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime));
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * {@inheritdoc}
107 107
      */
108
-    public function find(AuthCodeId $authCodeId): ?AuthCode
108
+    public function find(AuthCodeId $authCodeId): ? AuthCode
109 109
     {
110 110
         $authCode = $this->getFromCache($authCodeId);
111 111
         if (null === $authCode) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @return AuthCode|null
152 152
      */
153
-    private function getFromCache(AuthCodeId $authCodeId): ?AuthCode
153
+    private function getFromCache(AuthCodeId $authCodeId): ? AuthCode
154 154
     {
155 155
         $itemKey = sprintf('oauth2-auth_code-%s', $authCodeId->getValue());
156 156
         if (null !== $this->cache) {
Please login to merge, or discard this patch.
src/Bundle/Server/Tests/TestBundle/DependencyInjection/TestExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Bundle/Server/Tests/TestBundle/Resources/config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
Bundle/Server/Tests/TestBundle/Listener/ClientParametersUpdatedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Bundle/Server/Tests/TestBundle/Listener/AccessTokenCreatedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Bundle/Server/Tests/TestBundle/Listener/ClientCreatedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Bundle/Server/Tests/TestBundle/Listener/RefreshTokenRevokedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Bundle/Server/Tests/TestBundle/Listener/AccessTokenRevokedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.