Completed
Pull Request — master (#230)
by thomas
27:32 queued 03:04
created
src/Crypto/EcAdapter/Impl/Secp256k1/Adapter/EcAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-     * @param BufferInterface $privateKey
69
+     * @param Buffer $privateKey
70 70
      * @return bool
71 71
      */
72 72
     public function validatePrivateKey(BufferInterface $privateKey)
Please login to merge, or discard this patch.
src/Crypto/Hash.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      * Calculate Sha256(RipeMd160()) on the given data
12 12
      *
13 13
      * @param BufferInterface $data
14
-     * @return BufferInterface
14
+     * @return Buffer
15 15
      */
16 16
     public static function sha256ripe160(BufferInterface $data)
17 17
     {
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * Perform SHA256
23 23
      *
24 24
      * @param BufferInterface $data
25
-     * @return BufferInterface
25
+     * @return Buffer
26 26
      */
27 27
     public static function sha256(BufferInterface $data)
28 28
     {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * Perform SHA256 twice
34 34
      *
35 35
      * @param BufferInterface $data
36
-     * @return BufferInterface
36
+     * @return Buffer
37 37
      */
38 38
     public static function sha256d(BufferInterface $data)
39 39
     {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * RIPEMD160
45 45
      *
46 46
      * @param BufferInterface $data
47
-     * @return BufferInterface
47
+     * @return Buffer
48 48
      */
49 49
     public static function ripemd160(BufferInterface $data)
50 50
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * RIPEMD160 twice
56 56
      *
57 57
      * @param BufferInterface $data
58
-     * @return BufferInterface
58
+     * @return Buffer
59 59
      */
60 60
     public static function ripemd160d(BufferInterface $data)
61 61
     {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * Calculate a SHA1 hash
67 67
      *
68 68
      * @param BufferInterface $data
69
-     * @return BufferInterface
69
+     * @return Buffer
70 70
      */
71 71
     public static function sha1(BufferInterface $data)
72 72
     {
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
      * PBKDF2
78 78
      *
79 79
      * @param string $algorithm
80
-     * @param BufferInterface $password
81
-     * @param BufferInterface $salt
80
+     * @param Buffer $password
81
+     * @param Buffer $salt
82 82
      * @param integer $count
83 83
      * @param integer $keyLength
84
-     * @return BufferInterface
84
+     * @return Buffer
85 85
      * @throws \Exception
86 86
      */
87 87
     public static function pbkdf2($algorithm, BufferInterface $password, BufferInterface $salt, $count, $keyLength)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * @param BufferInterface $data
104 104
      * @param int $seed
105
-     * @return BufferInterface
105
+     * @return Buffer
106 106
      */
107 107
     public static function murmur3(BufferInterface $data, $seed)
108 108
     {
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @param string $algo
116 116
      * @param BufferInterface $data
117
-     * @param BufferInterface $salt
118
-     * @return BufferInterface
117
+     * @param Buffer $salt
118
+     * @return Buffer
119 119
      */
120 120
     public static function hmac($algo, BufferInterface $data, BufferInterface $salt)
121 121
     {
Please login to merge, or discard this patch.
src/Key/Deterministic/ElectrumKey.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     /**
77 77
      * @param int|string $sequence
78 78
      * @param bool $change
79
-     * @return int|string
79
+     * @return integer
80 80
      */
81 81
     public function getSequenceOffset($sequence, $change = false)
82 82
     {
Please login to merge, or discard this patch.
src/Key/Deterministic/ElectrumKeyFactory.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
     /**
34 34
      * Generate a master private key given a
35
-     * @param BufferInterface $seed
35
+     * @param Buffer $seed
36 36
      * @param EcAdapterInterface $ecAdapter
37 37
      * @return ElectrumKey
38 38
      */
Please login to merge, or discard this patch.
src/Key/Deterministic/HierarchicalKeyFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 class HierarchicalKeyFactory
16 16
 {
17 17
     /**
18
-     * @param EcAdapterInterface|null $ecAdapter
18
+     * @param EcAdapterInterface $ecAdapter
19 19
      * @param NetworkInterface $network
20 20
      * @return ExtendedKeySerializer
21 21
      */
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     }
38 38
 
39 39
     /**
40
-     * @param BufferInterface $entropy
40
+     * @param Buffer $entropy
41 41
      * @param EcAdapterInterface $ecAdapter
42 42
      * @return HierarchicalKey
43 43
      */
Please login to merge, or discard this patch.
src/Mnemonic/Bip39/Bip39Mnemonic.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @param BufferInterface $entropy
93
+     * @param Buffer $entropy
94 94
      * @return string
95 95
      */
96 96
     public function entropyToMnemonic(BufferInterface $entropy)
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     /**
102 102
      * @param string $mnemonic
103
-     * @return BufferInterface
103
+     * @return Buffer
104 104
      */
105 105
     public function mnemonicToEntropy($mnemonic)
106 106
     {
Please login to merge, or discard this patch.
src/Mnemonic/Electrum/ElectrumMnemonic.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
     /**
68 68
      * @param string $mnemonic
69
-     * @return BufferInterface
69
+     * @return Buffer
70 70
      */
71 71
     public function mnemonicToEntropy($mnemonic)
72 72
     {
Please login to merge, or discard this patch.
src/Script/Factory/OutputScriptFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      * @param int $m
98 98
      * @param PublicKeyInterface[] $keys
99 99
      * @param bool|true $sort
100
-     * @return ScriptCreator|Script
100
+     * @return Script
101 101
      */
102 102
     public function multisig($m, array $keys = [], $sort = true)
103 103
     {
Please login to merge, or discard this patch.
src/Script/Factory/ScriptCreator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     }
148 148
 
149 149
     /**
150
-     * @return ScriptInterface
150
+     * @return ScriptInterface|null
151 151
      */
152 152
     public function getScript()
153 153
     {
Please login to merge, or discard this patch.