@@ -53,7 +53,7 @@ |
||
53 | 53 | * Read PFX and return this class |
54 | 54 | * @param string $content |
55 | 55 | * @param string $password |
56 | - * @return \static |
|
56 | + * @return Certificate |
|
57 | 57 | * @throws CertificateException |
58 | 58 | */ |
59 | 59 | public static function readPfx($content, $password) |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Add new certificate to certification chain |
43 | - * @param string $contente Certificate in DER, CER or PEM format |
|
43 | + * @param string $content Certificate in DER, CER or PEM format |
|
44 | 44 | * @return array |
45 | 45 | */ |
46 | 46 | public function add($content) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * Load class with certificate content |
65 | 65 | * @param string $content |
66 | - * @return \static |
|
66 | + * @return PublicKey |
|
67 | 67 | */ |
68 | 68 | public static function createFromContent($content) |
69 | 69 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param string $data |
109 | 109 | * @param string $signature |
110 | 110 | * @param int $algorithm [optional] For more information see the list of Signature Algorithms. |
111 | - * @return int Returns true if the signature is correct, false if it is incorrect |
|
111 | + * @return boolean Returns true if the signature is correct, false if it is incorrect |
|
112 | 112 | * @throws CertificateException An error has occurred when verify signature |
113 | 113 | */ |
114 | 114 | public function verify($data, $signature, $algorithm = OPENSSL_ALGO_SHA1) |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Load xml from path |
57 | 57 | * @param string $filename |
58 | - * @return bool |
|
58 | + * @return false|null |
|
59 | 59 | */ |
60 | 60 | public function loadXMLFile($filename) |
61 | 61 | { |
@@ -32,7 +32,6 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Add exceptions to the collection |
35 | - * @param ExceptionCollection|\Exception $e Exception to add |
|
36 | 35 | * @return ExceptionCollection; |
37 | 36 | */ |
38 | 37 | public function add(\Exception $exception) |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * Make Signature tag |
38 | 38 | * @param string $content |
39 | 39 | * @param string $tagname |
40 | - * @param string $marker for URI |
|
40 | + * @param string $mark for URI |
|
41 | 41 | * @param string $algorithm |
42 | 42 | * @param array $canonical parameters to format node for signature |
43 | 43 | * @param string $rootname name of tag to insert signature block |
@@ -102,7 +102,6 @@ discard block |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * Verify if xml signature is valid |
105 | - * @param string $content xml content |
|
106 | 105 | * @param string $tagname tag for sign |
107 | 106 | * @return boolean |
108 | 107 | */ |
@@ -237,8 +236,6 @@ discard block |
||
237 | 236 | /** |
238 | 237 | * digestCheck |
239 | 238 | * Verify digest value |
240 | - * @param string $content |
|
241 | - * @param string $tagid |
|
242 | 239 | * @return boolean |
243 | 240 | * @throws \NFePHP\Common\Exception\SignerException |
244 | 241 | */ |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * type "sequence", as the first element of the structure |
40 | 40 | * @param string $publickeyUnformated |
41 | 41 | * @param string $oidNumber OID formated number |
42 | - * @return array |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public static function getOIDdata($oidNumber, $publickeyUnformated) |
45 | 45 | { |
@@ -88,8 +88,6 @@ discard block |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Get length of data field of a sequency from certifcate |
91 | - * @param integer $len |
|
92 | - * @param integer $bytes |
|
93 | 91 | * @param string $data |
94 | 92 | * @return integer |
95 | 93 | */ |
@@ -142,7 +140,7 @@ discard block |
||
142 | 140 | * @param array $abIn |
143 | 141 | * @param integer $qIn |
144 | 142 | * @param boolean $flag |
145 | - * @return integer |
|
143 | + * @return integer[] |
|
146 | 144 | */ |
147 | 145 | protected static function xBase128($abIn, $qIn, $flag) |
148 | 146 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * Set security protocol |
199 | 199 | * @param int $protocol |
200 | - * @return type Description |
|
200 | + * @return integer Description |
|
201 | 201 | */ |
202 | 202 | public function protocol($protocol = self::SSL_DEFAULT) |
203 | 203 | { |
@@ -248,6 +248,7 @@ discard block |
||
248 | 248 | * @param string $operation |
249 | 249 | * @param array $namespaces |
250 | 250 | * @param \SOAPHeader $header |
251 | + * @param integer $soapver |
|
251 | 252 | * @return string |
252 | 253 | */ |
253 | 254 | protected function makeEnvelopeSoap( |
@@ -316,6 +317,7 @@ discard block |
||
316 | 317 | |
317 | 318 | /** |
318 | 319 | * Delete all files in folder |
320 | + * @param string $folder |
|
319 | 321 | */ |
320 | 322 | public function removeTemporarilyFiles($folder) |
321 | 323 | { |