Passed
Pull Request — main (#2)
by Ion
01:46
created
src/Guzzle/RequestSignerMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __invoke(callable $handler): Closure
22 22
     {
23
-        return function (RequestInterface $request, array $options) use ($handler) {
23
+        return function(RequestInterface $request, array $options) use ($handler) {
24 24
             $request = $this->requestSigner->signRequest($request);
25 25
 
26 26
             return $handler($request, $options);
Please login to merge, or discard this patch.
src/RequestSigner.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
     {
42 42
         $nonce ??= Uuid::uuid4()->toString();
43 43
 
44
-	$datetime = $date ?? new DateTime();
44
+    $datetime = $date ?? new DateTime();
45 45
         $timestamp = $datetime->format('Uv');
46 46
 
47
-	$timeOffset = $datetime->format('P');
48
-	$timeString = $datetime->format('D, d M Y H:i:s') . ' GMT' . $timeOffset;
47
+    $timeOffset = $datetime->format('P');
48
+    $timeString = $datetime->format('D, d M Y H:i:s') . ' GMT' . $timeOffset;
49 49
 
50 50
         $body = $request->getBody()->getContents();
51 51
         $contentMd5 = $body !== '' ? base64_encode(md5($body, true)) : '';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $timestamp = $datetime->format('Uv');
46 46
 
47 47
 	$timeOffset = $datetime->format('P');
48
-	$timeString = $datetime->format('D, d M Y H:i:s') . ' GMT' . $timeOffset;
48
+	$timeString = $datetime->format('D, d M Y H:i:s').' GMT'.$timeOffset;
49 49
 
50 50
         $body = $request->getBody()->getContents();
51 51
         $contentMd5 = $body !== '' ? base64_encode(md5($body, true)) : '';
Please login to merge, or discard this patch.