Skip to content

Commit

Permalink
Update gnupg.php
Browse files Browse the repository at this point in the history
Removed incorrect `init()` function and added DocBlocks for `getengineinfo()` and `geterrorinfo()`.
  • Loading branch information
rhertogh authored and isfedorov committed Aug 28, 2024
1 parent 4807789 commit ecfcf85
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions gnupg/gnupg.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,6 @@ public function getprotocol() {}
*/
public function import($kye) {}

/**
* Initialize a connection
* @link https://php.net/manual/en/function.gnupg-init.php
*
* @return resource A GnuPG ``resource`` connection used by other GnuPG functions.
*/
public function init() {}

/**
* Returns an array with information about all keys that matches the given pattern
* @link https://php.net/manual/en/function.gnupg-keyinfo.php
Expand Down Expand Up @@ -308,8 +300,20 @@ public function setsignmode($signmode) {}
*/
public function sign($text) {}

/**
* Returns the engine info
* @link https://php.net/manual/en/function.gnupg-getengineinfo.php
*
* @return array
*/
public function getengineinfo() {}

/**
* Returns the error info
* @link https://php.net/manual/en/function.gnupg-geterrorinfo.php
*
* @return array
*/
public function geterrorinfo() {}
}

Expand Down

0 comments on commit ecfcf85

Please sign in to comment.