Completed
Push — develop ( 84b572...41bbe1 )
by Stuart
01:54
created
examples/01-InMemoryPipeline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 use GanbaroDigital\MessagingPipeline\V1\BuildMessagingPipelines;
6 6
 use GanbaroDigital\MessagingPipeline\V1\InstructionBuilders;
Please login to merge, or discard this patch.
src/V1/Operations/EncodeJson.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
      * @throws CannotJsonEncode
66 66
      *         if the PHP value cannot be represented in JSON encoding format
67 67
      */
68
-    public static function from($item, $fieldOrVarName='$item') : string
68
+    public static function from($item, $fieldOrVarName = '$item') : string
69 69
     {
70 70
         // deal with encoding problems
71 71
         $errorMessage = null;
72
-        set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
72
+        set_error_handler(function($errno, $errstr) use (&$errorMessage) {
73 73
             $errorMessage = $errstr;
74 74
         });
75 75
         $retval = json_encode($item);
Please login to merge, or discard this patch.
src/V1/Operations/FindHmacMarker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/V1/Operations/DecryptString.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         // deal with decryption problems
81 81
         $errorMessage = null;
82
-        set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
82
+        set_error_handler(function($errno, $errstr) use (&$errorMessage) {
83 83
             $errorMessage = $errstr;
84 84
         });
85 85
         $retval = openssl_decrypt(
Please login to merge, or discard this patch.
src/V1/Operations/DecodeJson.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
      * @throws CannotJsonDecode
66 66
      *         if PHP's json_decode() rejected $item
67 67
      */
68
-    public static function from(string $item, string $fieldOrVarName='$item')
68
+    public static function from(string $item, string $fieldOrVarName = '$item')
69 69
     {
70 70
         // deal with decoding problems
71 71
         $errorMessage = null;
72
-        set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
72
+        set_error_handler(function($errno, $errstr) use (&$errorMessage) {
73 73
             $errorMessage = $errstr;
74 74
         });
75 75
         $retval = json_decode($item);
Please login to merge, or discard this patch.
src/V1/Operations/DecodeBase64.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
      * @throws CannotBase64Decode
66 66
      *         if PHP's base64_decode() rejects $item
67 67
      */
68
-    public static function from(string $item, $fieldOrVarName='$item') : string
68
+    public static function from(string $item, $fieldOrVarName = '$item') : string
69 69
     {
70 70
         // deal with decoding problems
71 71
         $errorMessage = null;
72
-        set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
72
+        set_error_handler(function($errno, $errstr) use (&$errorMessage) {
73 73
             $errorMessage = $errstr;
74 74
         });
75 75
         $retval = base64_decode($item, true);
Please login to merge, or discard this patch.
src/V1/BuildMessagingPipelines.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @return NextInstruction[]
80 80
      *         the assembled pipelines
81 81
      */
82
-    public static function from($definition, $directions = InstructionPipeline::DI_FORWARD|InstructionPipeline::DI_REVERSE, $wrapperClass = NextInstruction::class)
82
+    public static function from($definition, $directions = InstructionPipeline::DI_FORWARD | InstructionPipeline::DI_REVERSE, $wrapperClass = NextInstruction::class)
83 83
     {
84 84
         return parent::from($definition, $directions, $wrapperClass);
85 85
     }
Please login to merge, or discard this patch.
src/V1/Checks/IsValidEncryptionIV.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     {
95 95
         // deal with a bad cipher
96 96
         $errorMessage = null;
97
-        set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
97
+        set_error_handler(function($errno, $errstr) use (&$errorMessage) {
98 98
             $errorMessage = $errstr;
99 99
         });
100 100
         $requiredLen = openssl_cipher_iv_length($encryptionType);
Please login to merge, or discard this patch.
src/V1/Requirements/RequireValidEncryptionIV.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.