mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
Fixed invalid param phpdoc
This commit is contained in:
parent
e391fdbd27
commit
5890f3da98
@ -491,7 +491,7 @@ class Crypt_Base
|
||||
*
|
||||
* If not explicitly set, CRYPT_MODE_CBC will be used.
|
||||
*
|
||||
* @param optional Integer $mode
|
||||
* @param Integer $mode
|
||||
* @access public
|
||||
*/
|
||||
function Crypt_Base($mode = CRYPT_MODE_CBC)
|
||||
@ -574,7 +574,7 @@ class Crypt_Base
|
||||
*
|
||||
* @see Crypt/Hash.php
|
||||
* @param String $password
|
||||
* @param optional String $method
|
||||
* @param String $method
|
||||
* @return Boolean
|
||||
* @access public
|
||||
* @internal Could, but not must, extend by the child Crypt_* class
|
||||
@ -1882,7 +1882,7 @@ class Crypt_Base
|
||||
* Inspired by array_shift
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @access private
|
||||
* @return String
|
||||
*/
|
||||
@ -1899,7 +1899,7 @@ class Crypt_Base
|
||||
* Inspired by array_pop
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @access private
|
||||
* @return String
|
||||
*/
|
||||
|
@ -147,7 +147,7 @@ class Crypt_Hash
|
||||
/**
|
||||
* Default Constructor.
|
||||
*
|
||||
* @param optional String $hash
|
||||
* @param String $hash
|
||||
* @return Crypt_Hash
|
||||
* @access public
|
||||
*/
|
||||
@ -175,7 +175,7 @@ class Crypt_Hash
|
||||
* Keys can be of any length.
|
||||
*
|
||||
* @access public
|
||||
* @param optional String $key
|
||||
* @param String $key
|
||||
*/
|
||||
function setKey($key = false)
|
||||
{
|
||||
@ -830,7 +830,7 @@ class Crypt_Hash
|
||||
* Inspired by array_shift
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @return String
|
||||
* @access private
|
||||
*/
|
||||
|
@ -344,7 +344,7 @@ class Crypt_RC2 extends Crypt_Base
|
||||
* If not explicitly set, CRYPT_RC2_MODE_CBC will be used.
|
||||
*
|
||||
* @see Crypt_Base::Crypt_Base()
|
||||
* @param optional Integer $mode
|
||||
* @param Integer $mode
|
||||
* @access public
|
||||
*/
|
||||
function Crypt_RC2($mode = CRYPT_RC2_MODE_CBC)
|
||||
|
@ -571,9 +571,9 @@ class Crypt_RSA
|
||||
* Will need to be passed back to Crypt_RSA::createKey() as the third parameter for further processing.
|
||||
*
|
||||
* @access public
|
||||
* @param optional Integer $bits
|
||||
* @param optional Integer $timeout
|
||||
* @param optional Math_BigInteger $p
|
||||
* @param Integer $bits
|
||||
* @param Integer $timeout
|
||||
* @param Math_BigInteger $p
|
||||
*/
|
||||
function createKey($bits = 1024, $timeout = false, $partial = array())
|
||||
{
|
||||
@ -2009,7 +2009,7 @@ class Crypt_RSA
|
||||
* Inspired by array_shift
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @return String
|
||||
* @access private
|
||||
*/
|
||||
|
@ -280,7 +280,7 @@ class Crypt_Rijndael extends Crypt_Base
|
||||
* If not explictly set, CRYPT_RIJNDAEL_MODE_CBC will be used.
|
||||
*
|
||||
* @see Crypt_Base::Crypt_Base()
|
||||
* @param optional Integer $mode
|
||||
* @param Integer $mode
|
||||
* @access public
|
||||
*/
|
||||
function Crypt_Rijndael($mode = CRYPT_RIJNDAEL_MODE_CBC)
|
||||
|
@ -195,7 +195,7 @@ class Crypt_TripleDES extends Crypt_DES
|
||||
*
|
||||
* @see Crypt_DES::Crypt_DES()
|
||||
* @see Crypt_Base::Crypt_Base()
|
||||
* @param optional Integer $mode
|
||||
* @param Integer $mode
|
||||
* @access public
|
||||
*/
|
||||
function Crypt_TripleDES($mode = CRYPT_MODE_CBC)
|
||||
|
@ -1257,7 +1257,7 @@ class File_ASN1
|
||||
* Inspired by array_shift
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @return String
|
||||
* @access private
|
||||
*/
|
||||
@ -1275,8 +1275,8 @@ class File_ASN1
|
||||
* No real conversion table is used.
|
||||
*
|
||||
* @param String $in
|
||||
* @param optional Integer $from
|
||||
* @param optional Integer $to
|
||||
* @param Integer $from
|
||||
* @param Integer $to
|
||||
* @return String
|
||||
* @access public
|
||||
*/
|
||||
|
@ -246,8 +246,8 @@ class Math_BigInteger
|
||||
* ?>
|
||||
* </code>
|
||||
*
|
||||
* @param optional $x base-10 number or base-$base number if $base set.
|
||||
* @param optional integer $base
|
||||
* @param $x base-10 number or base-$base number if $base set.
|
||||
* @param integer $base
|
||||
* @return Math_BigInteger
|
||||
* @access public
|
||||
*/
|
||||
@ -3113,7 +3113,7 @@ class Math_BigInteger
|
||||
* $max->random($min)
|
||||
*
|
||||
* @param Math_BigInteger $arg1
|
||||
* @param optional Math_BigInteger $arg2
|
||||
* @param Math_BigInteger $arg2
|
||||
* @return Math_BigInteger
|
||||
* @access public
|
||||
* @internal The API for creating random numbers used to be $a->random($min, $max), where $a was a Math_BigInteger object.
|
||||
@ -3194,8 +3194,8 @@ class Math_BigInteger
|
||||
* give up and return false.
|
||||
*
|
||||
* @param Math_BigInteger $arg1
|
||||
* @param optional Math_BigInteger $arg2
|
||||
* @param optional Integer $timeout
|
||||
* @param Math_BigInteger $arg2
|
||||
* @param Integer $timeout
|
||||
* @return Mixed
|
||||
* @access public
|
||||
* @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap4.pdf#page=15 HAC 4.44}.
|
||||
@ -3323,7 +3323,7 @@ class Math_BigInteger
|
||||
* $t parameter is distributability. Math_BigInteger::randomPrime() can be distributed across multiple pageloads
|
||||
* on a website instead of just one.
|
||||
*
|
||||
* @param optional Math_BigInteger $t
|
||||
* @param Math_BigInteger $t
|
||||
* @return Boolean
|
||||
* @access public
|
||||
* @internal Uses the
|
||||
|
@ -117,8 +117,8 @@ class Net_SCP
|
||||
* Connects to an SSH server
|
||||
*
|
||||
* @param String $host
|
||||
* @param optional Integer $port
|
||||
* @param optional Integer $timeout
|
||||
* @param Integer $port
|
||||
* @param Integer $timeout
|
||||
* @return Net_SCP
|
||||
* @access public
|
||||
*/
|
||||
@ -159,8 +159,8 @@ class Net_SCP
|
||||
*
|
||||
* @param String $remote_file
|
||||
* @param String $data
|
||||
* @param optional Integer $mode
|
||||
* @param optional Callable $callback
|
||||
* @param Integer $mode
|
||||
* @param Callable $callback
|
||||
* @return Boolean
|
||||
* @access public
|
||||
*/
|
||||
@ -234,7 +234,7 @@ class Net_SCP
|
||||
* operation
|
||||
*
|
||||
* @param String $remote_file
|
||||
* @param optional String $local_file
|
||||
* @param String $local_file
|
||||
* @return Mixed
|
||||
* @access public
|
||||
*/
|
||||
|
@ -283,8 +283,8 @@ class Net_SFTP extends Net_SSH2
|
||||
* Connects to an SFTP server
|
||||
*
|
||||
* @param String $host
|
||||
* @param optional Integer $port
|
||||
* @param optional Integer $timeout
|
||||
* @param Integer $port
|
||||
* @param Integer $timeout
|
||||
* @return Net_SFTP
|
||||
* @access public
|
||||
*/
|
||||
@ -421,7 +421,7 @@ class Net_SFTP extends Net_SSH2
|
||||
* Login
|
||||
*
|
||||
* @param String $username
|
||||
* @param optional String $password
|
||||
* @param String $password
|
||||
* @return Boolean
|
||||
* @access public
|
||||
*/
|
||||
@ -622,7 +622,7 @@ class Net_SFTP extends Net_SSH2
|
||||
* Logs errors
|
||||
*
|
||||
* @param String $response
|
||||
* @param optional Integer $status
|
||||
* @param Integer $status
|
||||
* @access public
|
||||
*/
|
||||
function _logError($response, $status = -1)
|
||||
@ -766,8 +766,8 @@ class Net_SFTP extends Net_SSH2
|
||||
/**
|
||||
* Returns a list of files in the given directory
|
||||
*
|
||||
* @param optional String $dir
|
||||
* @param optional Boolean $recursive
|
||||
* @param String $dir
|
||||
* @param Boolean $recursive
|
||||
* @return Mixed
|
||||
* @access public
|
||||
*/
|
||||
@ -815,8 +815,8 @@ class Net_SFTP extends Net_SSH2
|
||||
/**
|
||||
* Returns a detailed list of files in the given directory
|
||||
*
|
||||
* @param optional String $dir
|
||||
* @param optional Boolean $recursive
|
||||
* @param String $dir
|
||||
* @param Boolean $recursive
|
||||
* @return Mixed
|
||||
* @access public
|
||||
*/
|
||||
@ -850,7 +850,7 @@ class Net_SFTP extends Net_SSH2
|
||||
* Reads a list, be it detailed or not, of files in the given directory
|
||||
*
|
||||
* @param String $dir
|
||||
* @param optional Boolean $raw
|
||||
* @param Boolean $raw
|
||||
* @return Mixed
|
||||
* @access private
|
||||
*/
|
||||
@ -1343,8 +1343,8 @@ class Net_SFTP extends Net_SSH2
|
||||
* If the file does not exist, it will be created.
|
||||
*
|
||||
* @param String $filename
|
||||
* @param optional Integer $time
|
||||
* @param optional Integer $atime
|
||||
* @param Integer $time
|
||||
* @param Integer $atime
|
||||
* @return Boolean
|
||||
* @access public
|
||||
*/
|
||||
@ -1395,7 +1395,7 @@ class Net_SFTP extends Net_SSH2
|
||||
*
|
||||
* @param String $filename
|
||||
* @param Integer $uid
|
||||
* @param optional Boolean $recursive
|
||||
* @param Boolean $recursive
|
||||
* @return Boolean
|
||||
* @access public
|
||||
*/
|
||||
@ -1415,7 +1415,7 @@ class Net_SFTP extends Net_SSH2
|
||||
*
|
||||
* @param String $filename
|
||||
* @param Integer $gid
|
||||
* @param optional Boolean $recursive
|
||||
* @param Boolean $recursive
|
||||
* @return Boolean
|
||||
* @access public
|
||||
*/
|
||||
@ -1434,7 +1434,7 @@ class Net_SFTP extends Net_SSH2
|
||||
*
|
||||
* @param Integer $mode
|
||||
* @param String $filename
|
||||
* @param optional Boolean $recursive
|
||||
* @param Boolean $recursive
|
||||
* @return Mixed
|
||||
* @access public
|
||||
*/
|
||||
@ -1831,10 +1831,10 @@ class Net_SFTP extends Net_SSH2
|
||||
*
|
||||
* @param String $remote_file
|
||||
* @param String|resource $data
|
||||
* @param optional Integer $mode
|
||||
* @param optional Integer $start
|
||||
* @param optional Integer $local_start
|
||||
* @param optional callable|null $progressCallback
|
||||
* @param Integer $mode
|
||||
* @param Integer $start
|
||||
* @param Integer $local_start
|
||||
* @param callable|null $progressCallback
|
||||
* @return Boolean
|
||||
* @access public
|
||||
* @internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - Net_SFTP::setMode().
|
||||
@ -2052,9 +2052,9 @@ class Net_SFTP extends Net_SSH2
|
||||
* $offset and $length can be used to download files in chunks.
|
||||
*
|
||||
* @param String $remote_file
|
||||
* @param optional String $local_file
|
||||
* @param optional Integer $offset
|
||||
* @param optional Integer $length
|
||||
* @param String $local_file
|
||||
* @param Integer $offset
|
||||
* @param Integer $length
|
||||
* @return Mixed
|
||||
* @access public
|
||||
*/
|
||||
|
@ -128,7 +128,7 @@ class Net_SFTP_Stream
|
||||
/**
|
||||
* Registers this class as a URL wrapper.
|
||||
*
|
||||
* @param optional String $protocol The wrapper name to be registered.
|
||||
* @param String $protocol The wrapper name to be registered.
|
||||
* @return Boolean True on success, false otherwise.
|
||||
* @access public
|
||||
*/
|
||||
|
@ -509,9 +509,9 @@ class Net_SSH1
|
||||
* Connects to an SSHv1 server
|
||||
*
|
||||
* @param String $host
|
||||
* @param optional Integer $port
|
||||
* @param optional Integer $timeout
|
||||
* @param optional Integer $cipher
|
||||
* @param Integer $port
|
||||
* @param Integer $timeout
|
||||
* @param Integer $cipher
|
||||
* @return Net_SSH1
|
||||
* @access public
|
||||
*/
|
||||
@ -728,7 +728,7 @@ class Net_SSH1
|
||||
* Login
|
||||
*
|
||||
* @param String $username
|
||||
* @param optional String $password
|
||||
* @param String $password
|
||||
* @return Boolean
|
||||
* @access public
|
||||
*/
|
||||
@ -1318,7 +1318,7 @@ class Net_SSH1
|
||||
* Inspired by array_shift
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @return String
|
||||
* @access private
|
||||
*/
|
||||
@ -1488,7 +1488,7 @@ class Net_SSH1
|
||||
* Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
|
||||
* the raw bytes. This behavior is similar to PHP's md5() function.
|
||||
*
|
||||
* @param optional Boolean $raw_output
|
||||
* @param Boolean $raw_output
|
||||
* @return String
|
||||
* @access public
|
||||
*/
|
||||
@ -1503,7 +1503,7 @@ class Net_SSH1
|
||||
* Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
|
||||
* the raw bytes. This behavior is similar to PHP's md5() function.
|
||||
*
|
||||
* @param optional Boolean $raw_output
|
||||
* @param Boolean $raw_output
|
||||
* @return String
|
||||
* @access public
|
||||
*/
|
||||
@ -1518,7 +1518,7 @@ class Net_SSH1
|
||||
* Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
|
||||
* the raw bytes. This behavior is similar to PHP's md5() function.
|
||||
*
|
||||
* @param optional Boolean $raw_output
|
||||
* @param Boolean $raw_output
|
||||
* @return String
|
||||
* @access public
|
||||
*/
|
||||
@ -1533,7 +1533,7 @@ class Net_SSH1
|
||||
* Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
|
||||
* the raw bytes. This behavior is similar to PHP's md5() function.
|
||||
*
|
||||
* @param optional Boolean $raw_output
|
||||
* @param Boolean $raw_output
|
||||
* @return String
|
||||
* @access public
|
||||
*/
|
||||
@ -1549,7 +1549,7 @@ class Net_SSH1
|
||||
* is set to true, returns, instead, an array of constants. ie. instead of array('Triple-DES in CBC mode'), you'll
|
||||
* get array(NET_SSH1_CIPHER_3DES).
|
||||
*
|
||||
* @param optional Boolean $raw_output
|
||||
* @param Boolean $raw_output
|
||||
* @return Array
|
||||
* @access public
|
||||
*/
|
||||
@ -1565,7 +1565,7 @@ class Net_SSH1
|
||||
* is set to true, returns, instead, an array of constants. ie. instead of array('password authentication'), you'll
|
||||
* get array(NET_SSH1_AUTH_PASSWORD).
|
||||
*
|
||||
* @param optional Boolean $raw_output
|
||||
* @param Boolean $raw_output
|
||||
* @return Array
|
||||
* @access public
|
||||
*/
|
||||
|
@ -877,8 +877,8 @@ class Net_SSH2
|
||||
* $host can either be a string, representing the host, or a stream resource.
|
||||
*
|
||||
* @param Mixed $host
|
||||
* @param optional Integer $port
|
||||
* @param optional Integer $timeout
|
||||
* @param Integer $port
|
||||
* @param Integer $timeout
|
||||
* @see Net_SSH2::login()
|
||||
* @return Net_SSH2
|
||||
* @access public
|
||||
@ -1986,7 +1986,7 @@ class Net_SSH2
|
||||
* Login Helper
|
||||
*
|
||||
* @param String $username
|
||||
* @param optional String $password
|
||||
* @param String $password
|
||||
* @return Boolean
|
||||
* @access private
|
||||
* @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis}
|
||||
@ -2462,7 +2462,7 @@ class Net_SSH2
|
||||
* In all likelihood, this is not a feature you want to be taking advantage of.
|
||||
*
|
||||
* @param String $command
|
||||
* @param optional Callback $callback
|
||||
* @param Callback $callback
|
||||
* @return String
|
||||
* @access public
|
||||
*/
|
||||
@ -3478,7 +3478,7 @@ class Net_SSH2
|
||||
* See '6. Binary Packet Protocol' of rfc4253 for more info.
|
||||
*
|
||||
* @param String $data
|
||||
* @param optional String $logged
|
||||
* @param String $logged
|
||||
* @see Net_SSH2::_get_binary_packet()
|
||||
* @return Boolean
|
||||
* @access private
|
||||
@ -3717,7 +3717,7 @@ class Net_SSH2
|
||||
* Inspired by array_shift
|
||||
*
|
||||
* @param String $string
|
||||
* @param optional Integer $index
|
||||
* @param Integer $index
|
||||
* @return String
|
||||
* @access private
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user