Passed
Pull Request — master (#52)
by
unknown
02:15
created
src/ResponseAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         );
58 58
 
59 59
         $responseSignature = $response->getHeaderLine('X-Server-Authorization-HMAC-SHA256');
60
-        $compareSignature =  $compareResponse->getHeaderLine('X-Server-Authorization-HMAC-SHA256');
60
+        $compareSignature = $compareResponse->getHeaderLine('X-Server-Authorization-HMAC-SHA256');
61 61
 
62 62
         return hash_equals($compareSignature, $responseSignature);
63 63
     }
Please login to merge, or discard this patch.
src/Guzzle/HmacAuthMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@
 block discarded – undo
48 48
      */
49 49
     public function __invoke(callable $handler)
50 50
     {
51
-        return function ($request, array $options) use ($handler) {
51
+        return function($request, array $options) use ($handler) {
52 52
             $request = $this->signRequest($request);
53 53
 
54
-            $promise = function (ResponseInterface $response) use ($request) {
54
+            $promise = function(ResponseInterface $response) use ($request) {
55 55
                 if ($response->getStatusCode() != 401) {
56 56
                     $authenticator = new ResponseAuthenticator($request, $this->key);
57 57
 
Please login to merge, or discard this patch.
src/RequestSigner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $hashedBody = $this->digest->hash((string) $body);
91 91
 
92 92
         /** @var RequestInterface $request */
93
-        $request =  $request->withHeader('X-Authorization-Content-SHA256', $hashedBody);
93
+        $request = $request->withHeader('X-Authorization-Content-SHA256', $hashedBody);
94 94
 
95 95
         return $request;
96 96
     }
Please login to merge, or discard this patch.
src/Symfony/HmacAuthenticationProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         if (class_exists(DiactorosFactory::class)) {
44 44
             $httpMessageFactory = new DiactorosFactory();
45
-        }
46
-        else {
45
+        } else {
47 46
             $httpMessageFactory = new PsrHttpFactory(new ServerRequestFactory(), new StreamFactory(), new UploadedFileFactory(), new ResponseFactory());
48 47
         }
49 48
 
Please login to merge, or discard this patch.
src/Symfony/HmacResponseListener.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
         if ($request->attributes->has('hmac.key')) {
35 35
             if (class_exists(DiactorosFactory::class)) {
36 36
                 $httpMessageFactory = new DiactorosFactory();
37
-            }
38
-            else {
37
+            } else {
39 38
                 $httpMessageFactory = new PsrHttpFactory(new ServerRequestFactory(), new StreamFactory(), new UploadedFileFactory(), new ResponseFactory());
40 39
             }
41 40
 
Please login to merge, or discard this patch.