Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
src/Component/Server/Tests/Stub/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/Component/Server/Tests/Stub/ServiceLocator.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/Tests/Stub/IpAddressMiddleware.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)
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             foreach (explode(';', $headerValue) as $headerPart) {
172 172
                 if (strtolower(substr($headerPart, 0, 4)) == 'for=') {
173 173
                     $for = explode(']', $headerPart);
174
-                    $headerValue = trim(substr(reset($for), 4), " \t\n\r\0\x0B" . '"[]');
174
+                    $headerValue = trim(substr(reset($for), 4), " \t\n\r\0\x0B".'"[]');
175 175
                     break;
176 176
                 }
177 177
             }
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/AccessTokenRepository.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/Tests/Stub/ResourceServerAuthMethodByIpAddress.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)
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * {@inheritdoc}
25 25
      */
26
-    public function findResourceServerId(ServerRequestInterface $request, &$resourceServerCredentials = null): ?ResourceServerId
26
+    public function findResourceServerId(ServerRequestInterface $request, &$resourceServerCredentials = null): ? ResourceServerId
27 27
     {
28 28
         if ($request->hasHeader('X-Resource-Server-Id')) {
29 29
             $id = $request->getHeader('X-Resource-Server-Id');
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return false;
51 51
         }
52 52
         $params = $request->getServerParams();
53
-        if(!array_key_exists('REMOTE_ADDR', $params)) {
53
+        if (!array_key_exists('REMOTE_ADDR', $params)) {
54 54
             return false;
55 55
         }
56 56
 
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/ResourceServerRepository.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)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * {@inheritdoc}
49 49
      */
50
-    public function find(ResourceServerId $resourceServerId): ?ResourceServerInterface
50
+    public function find(ResourceServerId $resourceServerId): ? ResourceServerInterface
51 51
     {
52 52
         if (array_key_exists($resourceServerId->getValue(), $this->resourceServers)) {
53 53
             return $this->resourceServers[$resourceServerId->getValue()];
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/SessionStateParameterExtension.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)
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * {@inheritdoc}
41 41
      */
42
-    public function getBrowserState(ServerRequestInterface $request, Authorization &$authorization): string
42
+    public function getBrowserState(ServerRequestInterface $request, Authorization & $authorization): string
43 43
     {
44 44
         if (array_key_exists($this->storageName, $_SESSION)) {
45 45
             return $_SESSION[$this->storageName];
@@ -78,6 +78,6 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $url_parts = parse_url($redirectUri);
80 80
 
81
-        return sprintf('%s://%s%s', $url_parts['scheme'], $url_parts['host'], isset($url_parts['port']) ? ':' . $url_parts['port'] : '');
81
+        return sprintf('%s://%s%s', $url_parts['scheme'], $url_parts['host'], isset($url_parts['port']) ? ':'.$url_parts['port'] : '');
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/UserAccountManager.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/Tests/Stub/SecurityLayer.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.