@@ -52,8 +52,8 @@ |
||
| 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; |
@@ -52,8 +52,8 @@ |
||
| 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; |
@@ -51,8 +51,8 @@ |
||
| 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; |
@@ -51,8 +51,8 @@ |
||
| 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; |
@@ -51,8 +51,8 @@ |
||
| 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; |
@@ -51,8 +51,8 @@ |
||
| 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; |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | * isn't an encryption cipher that it supports |
| 53 | 53 | */ |
| 54 | 54 | class UnsupportedEncryptionCipher |
| 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; |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | * with our MessagingPipeline |
| 53 | 53 | */ |
| 54 | 54 | class UnsupportedHmacAlgorithm |
| 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; |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Copyright (c) 2017-present Ganbaro Digital Ltd |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * if $item isn't a valid initialisation vector for the given |
| 114 | 114 | * encryption type |
| 115 | 115 | */ |
| 116 | - public function to($item, $fieldOrVarName='$item') |
|
| 116 | + public function to($item, $fieldOrVarName = '$item') |
|
| 117 | 117 | { |
| 118 | 118 | // are we happy? |
| 119 | 119 | if (IsValidEncryptionIV::check($this->encryptionCipher, $item)) { |