Completed
Pull Request — master (#240)
by thomas
73:04
created
src/Address/WitnessScriptHash.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return BufferInterface|string
51
+     * @return BufferInterface
52 52
      */
53 53
     public function getHash()
54 54
     {
Please login to merge, or discard this patch.
src/Script/Interpreter/Stack.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     }
18 18
 
19 19
     /**
20
-     * @param mixed $value
20
+     * @param BufferInterface $value
21 21
      * @throws \InvalidArgumentException
22 22
      */
23 23
     private function typeCheck($value)
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     }
128 128
 
129 129
     /**
130
-     * @param $length
130
+     * @param integer $length
131 131
      * @return $this
132 132
      */
133 133
     public function resize($length)
Please login to merge, or discard this patch.
src/Script/Script.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-     * @param bool|true $accurate
74
+     * @param boolean $accurate
75 75
      * @return int
76 76
      */
77 77
     public function countSigOps($accurate = true)
Please login to merge, or discard this patch.
src/Transaction/Factory/TxSignerContext.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-     * @return array|\BitWasp\Bitcoin\Crypto\EcAdapter\Key\PublicKeyInterface[]
118
+     * @return PublicKeyInterface[]
119 119
      */
120 120
     public function getPublicKeys()
121 121
     {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @return array
126
+     * @return TransactionSignatureInterface[]
127 127
      */
128 128
     public function getSignatures()
129 129
     {
Please login to merge, or discard this patch.
src/Transaction/Mutator/WitnessCollectionMutator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param int|string $start
64
-     * @param int|string $length
63
+     * @param integer $start
64
+     * @param integer $length
65 65
      * @return $this
66 66
      */
67 67
     public function slice($start, $length)
Please login to merge, or discard this patch.
src/Address/WitnessPubKeyHashAddress.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return BufferInterface|string
51
+     * @return BufferInterface
52 52
      */
53 53
     public function getHash()
54 54
     {
Please login to merge, or discard this patch.
src/Serializer/Block/BlockSerializer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * @param Math $math
34 34
      * @param BlockHeaderSerializer $headerSerializer
35
-     * @param TransactionSerializer $txSerializer
35
+     * @param MTransactionSerializer $txSerializer
36 36
      */
37 37
     public function __construct(Math $math, BlockHeaderSerializer $headerSerializer, MTransactionSerializer $txSerializer)
38 38
     {
Please login to merge, or discard this patch.
src/Transaction/Factory/TxSigCreator.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,6 +176,10 @@  discard block
 block discarded – undo
176 176
         return $this;
177 177
     }
178 178
 
179
+    /**
180
+     * @param integer $sigVersion
181
+     * @param integer $sigHashType
182
+     */
179 183
     private function signStep($txoType, SignatureData $sigData, PrivateKeyInterface $privateKey, ScriptInterface $scriptPubKey, $sigVersion, $sigHashType)
180 184
     {
181 185
         if (count($sigData->signatures) < $this->requiredSigs) {
@@ -226,7 +230,7 @@  discard block
 block discarded – undo
226 230
      * @param PrivateKeyInterface $privateKey
227 231
      * @param ScriptInterface $scriptPubKey
228 232
      * @param int $sigHashType
229
-     * @return $this|bool
233
+     * @return boolean
230 234
      */
231 235
     public function signInput(SignatureData $sigData, PrivateKeyInterface $privateKey, ScriptInterface $scriptPubKey, $sigHashType)
232 236
     {
Please login to merge, or discard this patch.
src/Transaction/Transaction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
261 261
     }
262 262
 
263 263
     /**
264
-     * @return string
264
+     * @return \BitWasp\Buffertools\Buffer
265 265
      */
266 266
     public function getWitnessBuffer()
267 267
     {
Please login to merge, or discard this patch.