Failed Conditions
Pull Request — master (#18)
by Florent
04:44
created
src/Component/Server/TokenType/MacToken.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)
@@ -125,13 +125,13 @@  discard block
 block discarded – undo
125 125
     private function getParametersToCheck(): array
126 126
     {
127 127
         return [
128
-            'id' => function ($value, AccessToken $accessToken) {
128
+            'id' => function($value, AccessToken $accessToken) {
129 129
                 return hash_equals($accessToken->getTokenId()->getValue(), $value);
130 130
             },
131
-            'ts' => function ($value) {
131
+            'ts' => function($value) {
132 132
                 return time() < $this->getTimestampLifetime() + (int) $value;
133 133
             },
134
-            'nonce' => function () {
134
+            'nonce' => function() {
135 135
                 return true;
136 136
             },
137 137
         ];
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      *
193 193
      * @return bool
194 194
      */
195
-    private function isHeaderValid(string $header, array &$additionalCredentialValues, string &$token = null): bool
195
+    private function isHeaderValid(string $header, array &$additionalCredentialValues, string & $token = null): bool
196 196
     {
197 197
         if (1 === preg_match('/(\w+)=("((?:[^"\\\\]|\\\\.)+)"|([^\s,$]+))/', $header, $matches)) {
198 198
             preg_match_all('/(\w+)=("((?:[^"\\\\]|\\\\.)+)"|([^\s,$]+))/', $header, $matches, PREG_SET_ORDER);
Please login to merge, or discard this patch.
src/Component/Server/TokenType/BearerToken.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/Component/Server/TokenTypeHint/AuthCodeTypeHint.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/Component/Server/TokenTypeHint/RefreshTokenTypeHint.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/Component/Server/TokenTypeHint/AccessTokenTypeHint.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.
Component/Server/Endpoint/ClientRegistration/ClientRegistrationEndpoint.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.
Component/Server/Endpoint/TokenIntrospection/TokenIntrospectionEndpoint.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/Component/Server/Endpoint/TokenRevocation/TokenRevocationEndpoint.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/Component/Server/Endpoint/IssuerDiscovery/IssuerDiscoveryEndpoint.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.