@@ -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)) { |
@@ -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 |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * @throws UnsupportedHmacAlgorithm |
| 86 | 86 | * if we have something that isn't a supported HMAC algorithm |
| 87 | 87 | */ |
| 88 | - public function to($item, $fieldOrVarName='$item') |
|
| 88 | + public function to($item, $fieldOrVarName = '$item') |
|
| 89 | 89 | { |
| 90 | 90 | // are we happy? |
| 91 | 91 | if (IsValidHmacAlgorithm::check($item)) { |
@@ -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 |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * @throws UnsupportedEncryptionCipher |
| 86 | 86 | * if we have something that isn't a MessagingPipelineInstruction |
| 87 | 87 | */ |
| 88 | - public function to($item, $fieldOrVarName='$item') |
|
| 88 | + public function to($item, $fieldOrVarName = '$item') |
|
| 89 | 89 | { |
| 90 | 90 | // are we happy? |
| 91 | 91 | if (IsValidEncryptionCipher::check($item)) { |
@@ -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 |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * @throws ConfigKeyNotFound |
| 108 | 108 | * if $item[$this->expectedKey] does not exist |
| 109 | 109 | */ |
| 110 | - public function to($item, $fieldOrVarName='$item') |
|
| 110 | + public function to($item, $fieldOrVarName = '$item') |
|
| 111 | 111 | { |
| 112 | 112 | // are we happy? |
| 113 | 113 | if (DoesArrayHaveKey::check($item, $this->expectedKey)) { |
@@ -1,6 +1,6 @@ |
||
| 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 |