Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
src/Bundle/Server/TokenType/MacToken.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/Form/Type/AuthorizationType.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/Form/Handler/AuthorizationFormHandler.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/Form/Model/AuthorizationModel.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/Resolver/AccessTokenResolver.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/Model/RefreshTokenRepository.php 1 patch
Spacing   +3 added lines, -3 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)
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * {@inheritdoc}
88 88
      */
89
-    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?ResourceServerId $resourceServerId, ?\DateTimeImmutable $expiresAt): RefreshToken
89
+    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : RefreshToken
90 90
     {
91 91
         if (null === $expiresAt) {
92 92
             $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime));
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @return RefreshToken|null
157 157
      */
158
-    private function getFromCache(RefreshTokenId $refreshTokenId): ?RefreshToken
158
+    private function getFromCache(RefreshTokenId $refreshTokenId): ? RefreshToken
159 159
     {
160 160
         $itemKey = sprintf('oauth2-refresh_token-%s', $refreshTokenId->getValue());
161 161
         if (null !== $this->cache) {
Please login to merge, or discard this patch.
src/Bundle/Server/Model/AccessTokenRepository.php 1 patch
Spacing   +3 added lines, -3 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)
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * {@inheritdoc}
110 110
      */
111
-    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ?RefreshTokenId $refreshTokenId, ?ResourceServerId $resourceServerId , ?\DateTimeImmutable $expiresAt): AccessToken
111
+    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AccessToken
112 112
     {
113 113
         if (null === $expiresAt) {
114 114
             $expiresAt = new \DateTimeImmutable(sprintf('now +%u seconds', $this->lifetime));
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @return AccessToken|null
129 129
      */
130
-    private function getFromCache(AccessTokenId $accessTokenId): ?AccessToken
130
+    private function getFromCache(AccessTokenId $accessTokenId): ? AccessToken
131 131
     {
132 132
         $itemKey = sprintf('oauth2-access_token-%s', $accessTokenId->getValue());
133 133
         if (null !== $this->cache) {
Please login to merge, or discard this patch.
src/Bundle/Server/Model/ScopeRepository.php 1 patch
Spacing   +2 added lines, -2 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)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $name = $scopePolicy->name();
61 61
         $this->scopePolicies[$name] = $scopePolicy;
62 62
 
63
-        if (true === $isDefault ) {
63
+        if (true === $isDefault) {
64 64
             $this->defaultScopePolicy = $name;
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Bundle/Server/Model/ClientRepository.php 1 patch
Spacing   +3 added lines, -3 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)
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * {@inheritdoc}
54 54
      */
55
-    public function find(ClientId $clientId): ?Client
55
+    public function find(ClientId $clientId): ? Client
56 56
     {
57 57
         $client = $this->getFromCache($clientId);
58 58
         if (null === $client) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      *
98 98
      * @return Client|null
99 99
      */
100
-    private function getFromCache(ClientId $clientId): ?Client
100
+    private function getFromCache(ClientId $clientId): ? Client
101 101
     {
102 102
         $itemKey = sprintf('oauth2-client-%s', $clientId->getValue());
103 103
         if (null !== $this->cache) {
Please login to merge, or discard this patch.