@@ -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) |
@@ -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 | { |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * Set security protocol |
| 277 | 277 | * @param int $protocol |
| 278 | - * @return type Description |
|
| 278 | + * @return integer Description |
|
| 279 | 279 | */ |
| 280 | 280 | public function protocol($protocol = self::SSL_DEFAULT) |
| 281 | 281 | { |
@@ -327,6 +327,7 @@ discard block |
||
| 327 | 327 | * @param string $operation |
| 328 | 328 | * @param array $namespaces |
| 329 | 329 | * @param \SOAPHeader $header |
| 330 | + * @param integer $soapver |
|
| 330 | 331 | * @return string |
| 331 | 332 | */ |
| 332 | 333 | protected function makeEnvelopeSoap( |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * Make Signature tag |
| 39 | 39 | * @param string $content |
| 40 | 40 | * @param string $tagname |
| 41 | - * @param string $marker for URI |
|
| 41 | + * @param string $mark for URI |
|
| 42 | 42 | * @param string $algorithm |
| 43 | 43 | * @param array $canonical parameters to format node for signature |
| 44 | 44 | * @param string $rootname name of tag to insert signature block |
@@ -104,7 +104,6 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Verify if xml signature is valid |
| 107 | - * @param string $content xml content |
|
| 108 | 107 | * @param string $tagname tag for sign |
| 109 | 108 | * @return boolean |
| 110 | 109 | */ |
@@ -241,8 +240,6 @@ discard block |
||
| 241 | 240 | /** |
| 242 | 241 | * digestCheck |
| 243 | 242 | * Verify digest value |
| 244 | - * @param string $content |
|
| 245 | - * @param string $tagid |
|
| 246 | 243 | * @return boolean |
| 247 | 244 | * @throws SignerException |
| 248 | 245 | */ |