Completed
Push — develop ( cf8e96...b345eb )
by Stuart
02:22
created
src/V1/Operations/VerifyHmac.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
      *         if the HMAC attached to $message doesn't match what we expect
74 74
      *         (strongly suggests $message has been tampered with)
75 75
      */
76
-    public static function for(string $message, $expectedHmac, string $hashAlgo, string $key)
77
-    {
76
+    public static function for(string $message, $expectedHmac, string $hashAlgo, string $key) {
78 77
         // robustness!
79 78
         RequireValidHmacAlgorithm::apply()->to($hashAlgo);
80 79
 
Please login to merge, or discard this patch.
src/V1/Exceptions/CannotDecryptString.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
  * exception thrown when our attempt to decrypt a string has failed
52 52
  */
53 53
 class CannotDecryptString
54
-  extends ParameterisedException
55
-  implements MessagingPipelineException, HttpRuntimeErrorException
54
+    extends ParameterisedException
55
+    implements MessagingPipelineException, HttpRuntimeErrorException
56 56
 {
57 57
     // we map onto HTTP 500
58 58
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/HmacVerificationFailed.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
  * with our MessagingPipeline
53 53
  */
54 54
 class HmacVerificationFailed
55
-  extends ParameterisedException
56
-  implements MessagingPipelineException, HttpRuntimeErrorException
55
+    extends ParameterisedException
56
+    implements MessagingPipelineException, HttpRuntimeErrorException
57 57
 {
58 58
     // we map onto HTTP 500
59 59
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/InvalidEncryptionIV.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
  * isn't an encryption cipher that it supports
53 53
  */
54 54
 class InvalidEncryptionIV
55
-  extends ParameterisedException
56
-  implements MessagingPipelineException, HttpRuntimeErrorException
55
+    extends ParameterisedException
56
+    implements MessagingPipelineException, HttpRuntimeErrorException
57 57
 {
58 58
     // we map onto HTTP 500
59 59
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/HmacNotFound.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
  * with our MessagingPipeline
53 53
  */
54 54
 class HmacNotFound
55
-  extends ParameterisedException
56
-  implements MessagingPipelineException, HttpRuntimeErrorException
55
+    extends ParameterisedException
56
+    implements MessagingPipelineException, HttpRuntimeErrorException
57 57
 {
58 58
     // we map onto HTTP 500
59 59
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/CannotJsonEncode.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
  * exception thrown when json_encode() has failed
52 52
  */
53 53
 class CannotJsonEncode
54
-  extends ParameterisedException
55
-  implements MessagingPipelineException, HttpRuntimeErrorException
54
+    extends ParameterisedException
55
+    implements MessagingPipelineException, HttpRuntimeErrorException
56 56
 {
57 57
     // we map onto HTTP 500
58 58
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/ConfigKeyNotFound.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
  * exception thrown when we've been given an incomplete config array
52 52
  */
53 53
 class ConfigKeyNotFound
54
-  extends ParameterisedException
55
-  implements MessagingPipelineException, HttpRuntimeErrorException
54
+    extends ParameterisedException
55
+    implements MessagingPipelineException, HttpRuntimeErrorException
56 56
 {
57 57
     // we map onto HTTP 500
58 58
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/CannotJsonDecode.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
  * exception thrown when json_decode() has failed
52 52
  */
53 53
 class CannotJsonDecode
54
-  extends ParameterisedException
55
-  implements MessagingPipelineException, HttpRuntimeErrorException
54
+    extends ParameterisedException
55
+    implements MessagingPipelineException, HttpRuntimeErrorException
56 56
 {
57 57
     // we map onto HTTP 500
58 58
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.
src/V1/Exceptions/CannotBase64Decode.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
  * exception thrown when base64_decode() has failed
52 52
  */
53 53
 class CannotBase64Decode
54
-  extends ParameterisedException
55
-  implements MessagingPipelineException, HttpRuntimeErrorException
54
+    extends ParameterisedException
55
+    implements MessagingPipelineException, HttpRuntimeErrorException
56 56
 {
57 57
     // we map onto HTTP 500
58 58
     use UnexpectedErrorStatusProvider;
Please login to merge, or discard this patch.