Completed
Push — master ( 8926ce...7880a4 )
by Marcel
01:06
created
src/Tx/Script.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,16 +136,16 @@
 block discarded – undo
136 136
 
137 137
     public function isP2SH(): bool
138 138
     {
139
-        return 3              === \count($this->cmds)
139
+        return 3 === \count($this->cmds)
140 140
             && $this->cmds[0] === OpCodes::OP_HASH160->value
141 141
             && \is_string($this->cmds[1])
142
-            && 20             === \strlen($this->cmds[1])
142
+            && 20 === \strlen($this->cmds[1])
143 143
             && $this->cmds[2] === OpCodes::OP_EQUAL->value;
144 144
     }
145 145
 
146 146
     public function isP2WPKH(): bool
147 147
     {
148
-        return 2              === \count($this->cmds)
148
+        return 2 === \count($this->cmds)
149 149
             && $this->cmds[0] === OpCodes::OP_0->value
150 150
             && \is_string($this->cmds[1])
151 151
             && 20 === \strlen($this->cmds[1]);
Please login to merge, or discard this patch.
src/Tx/Script/Interpreter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private static function payToScriptHashSequence(array $cmds): bool
90 90
     {
91
-        return 3        === \count($cmds)
91
+        return 3 === \count($cmds)
92 92
             && $cmds[0] === OpCodes::OP_HASH160->value
93 93
             && \is_string($cmds[1])
94
-            && 20       === \strlen($cmds[1])
94
+            && 20 === \strlen($cmds[1])
95 95
             && $cmds[2] === OpCodes::OP_EQUAL->value;
96 96
     }
97 97
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     private static function payToWitnessPubKeyHashSequence(array $stack): bool
129 129
     {
130
-        return 2         === \count($stack)
130
+        return 2 === \count($stack)
131 131
             && $stack[0] === Encoding::encodeStackNum(0)
132 132
             && \is_string($stack[1])
133 133
             && 20 === \strlen($stack[1]);
Please login to merge, or discard this patch.