Поправил докблоки

This commit is contained in:
Artem Vasilev 2022-11-03 17:59:42 +03:00
parent 7a709d9206
commit 768fd3c050

View File

@ -349,7 +349,6 @@ class CryptoPro
$cadesSigner->set_Certificate($cadesCertificate); $cadesSigner->set_Certificate($cadesCertificate);
/** @var \CPAttributes $cadesAuthAttrs */
$cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes(); $cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes();
$cadesAuthAttrs->Add($cadesAttrs); $cadesAuthAttrs->Add($cadesAttrs);
@ -443,7 +442,6 @@ class CryptoPro
$cadesSigner->set_Certificate($cadesCertificate); $cadesSigner->set_Certificate($cadesCertificate);
/** @var \CPAttributes $cadesAuthAttrs */
$cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes(); $cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes();
$cadesAuthAttrs->Add($cadesAttrs); $cadesAuthAttrs->Add($cadesAttrs);
@ -526,7 +524,6 @@ class CryptoPro
$cadesSigner->set_Certificate($cadesCertificate); $cadesSigner->set_Certificate($cadesCertificate);
/** @var \CPAttributes $cadesAuthAttrs */
$cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes(); $cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes();
$cadesAuthAttrs->Add($cadesAttrs); $cadesAuthAttrs->Add($cadesAttrs);
@ -580,7 +577,8 @@ class CryptoPro
* *
* @param string $unencryptedMessage сообщение для хеширования * @param string $unencryptedMessage сообщение для хеширования
* *
* @return void * @throws \Exception
* @return string
*/ */
public static function createHash(string $unencryptedMessage) public static function createHash(string $unencryptedMessage)
{ {
@ -608,7 +606,6 @@ class CryptoPro
try try
{ {
/** @var string $hash */
$hash = $cadesHashedData->get_Value(); $hash = $cadesHashedData->get_Value();
} }
catch (\Throwable $e) catch (\Throwable $e)