@@ -1704,7 +1704,7 @@ discard block |
||
1704 | 1704 | * |
1705 | 1705 | * @param array ref $root |
1706 | 1706 | * @param string $path |
1707 | - * @param object $asn1 |
|
1707 | + * @param ASN1 $asn1 |
|
1708 | 1708 | * @access private |
1709 | 1709 | */ |
1710 | 1710 | function _mapInAttributes(&$root, $path, $asn1) |
@@ -1745,7 +1745,7 @@ discard block |
||
1745 | 1745 | * |
1746 | 1746 | * @param array ref $root |
1747 | 1747 | * @param string $path |
1748 | - * @param object $asn1 |
|
1748 | + * @param ASN1 $asn1 |
|
1749 | 1749 | * @access private |
1750 | 1750 | */ |
1751 | 1751 | function _mapOutAttributes(&$root, $path, $asn1) |
@@ -1788,7 +1788,7 @@ discard block |
||
1788 | 1788 | * |
1789 | 1789 | * @param array ref $root |
1790 | 1790 | * @param string $path |
1791 | - * @param object $asn1 |
|
1791 | + * @param ASN1 $asn1 |
|
1792 | 1792 | * @access private |
1793 | 1793 | */ |
1794 | 1794 | function _mapInDNs(&$root, $path, $asn1) |
@@ -1818,7 +1818,7 @@ discard block |
||
1818 | 1818 | * |
1819 | 1819 | * @param array ref $root |
1820 | 1820 | * @param string $path |
1821 | - * @param object $asn1 |
|
1821 | + * @param ASN1 $asn1 |
|
1822 | 1822 | * @access private |
1823 | 1823 | */ |
1824 | 1824 | function _mapOutDNs(&$root, $path, $asn1) |
@@ -2113,7 +2113,7 @@ discard block |
||
2113 | 2113 | * |
2114 | 2114 | * @param bool $caonly optional |
2115 | 2115 | * @access public |
2116 | - * @return mixed |
|
2116 | + * @return null|boolean |
|
2117 | 2117 | */ |
2118 | 2118 | function validateSignature($caonly = true) |
2119 | 2119 | { |
@@ -2327,7 +2327,7 @@ discard block |
||
2327 | 2327 | * |
2328 | 2328 | * @param string $propName |
2329 | 2329 | * @access private |
2330 | - * @return mixed |
|
2330 | + * @return string|false |
|
2331 | 2331 | */ |
2332 | 2332 | function _translateDNProp($propName) |
2333 | 2333 | { |
@@ -2585,7 +2585,7 @@ discard block |
||
2585 | 2585 | /** |
2586 | 2586 | * Get the Distinguished Name for a certificates subject |
2587 | 2587 | * |
2588 | - * @param mixed $format optional |
|
2588 | + * @param integer $format optional |
|
2589 | 2589 | * @param array $dn optional |
2590 | 2590 | * @access public |
2591 | 2591 | * @return bool |
@@ -2734,7 +2734,7 @@ discard block |
||
2734 | 2734 | * |
2735 | 2735 | * @param int $format optional |
2736 | 2736 | * @access public |
2737 | - * @return mixed |
|
2737 | + * @return boolean |
|
2738 | 2738 | */ |
2739 | 2739 | function getIssuerDN($format = self::DN_ARRAY) |
2740 | 2740 | { |
@@ -2756,7 +2756,7 @@ discard block |
||
2756 | 2756 | * |
2757 | 2757 | * @param int $format optional |
2758 | 2758 | * @access public |
2759 | - * @return mixed |
|
2759 | + * @return boolean |
|
2760 | 2760 | */ |
2761 | 2761 | function getSubjectDN($format = self::DN_ARRAY) |
2762 | 2762 | { |
@@ -2872,7 +2872,7 @@ discard block |
||
2872 | 2872 | * |
2873 | 2873 | * @param object $key |
2874 | 2874 | * @access public |
2875 | - * @return bool |
|
2875 | + * @return boolean|null |
|
2876 | 2876 | */ |
2877 | 2877 | function setPublicKey($key) |
2878 | 2878 | { |
@@ -3087,8 +3087,8 @@ discard block |
||
3087 | 3087 | * |
3088 | 3088 | * https://developer.mozilla.org/en-US/docs/HTML/Element/keygen |
3089 | 3089 | * |
3090 | - * @param string $csr |
|
3091 | 3090 | * @access public |
3091 | + * @param false|string $spkac |
|
3092 | 3092 | * @return mixed |
3093 | 3093 | */ |
3094 | 3094 | function loadSPKAC($spkac) |
@@ -3158,7 +3158,6 @@ discard block |
||
3158 | 3158 | /** |
3159 | 3159 | * Save a SPKAC CSR request |
3160 | 3160 | * |
3161 | - * @param array $csr |
|
3162 | 3161 | * @param int $format optional |
3163 | 3162 | * @access public |
3164 | 3163 | * @return string |
@@ -3789,7 +3788,6 @@ discard block |
||
3789 | 3788 | * X.509 certificate signing helper function. |
3790 | 3789 | * |
3791 | 3790 | * @param object $key |
3792 | - * @param \phpseclib\File\X509 $subject |
|
3793 | 3791 | * @param string $signatureAlgorithm |
3794 | 3792 | * @access public |
3795 | 3793 | * @throws \phpseclib\Exception\UnsupportedAlgorithmException if the algorithm is unsupported |
@@ -4325,7 +4323,7 @@ discard block |
||
4325 | 4323 | * |
4326 | 4324 | * @param string $id |
4327 | 4325 | * @param mixed $value |
4328 | - * @param bool $disposition optional |
|
4326 | + * @param integer $disposition optional |
|
4329 | 4327 | * @access public |
4330 | 4328 | * @return bool |
4331 | 4329 | */ |
@@ -4483,7 +4481,7 @@ discard block |
||
4483 | 4481 | * Format a public key as appropriate |
4484 | 4482 | * |
4485 | 4483 | * @access private |
4486 | - * @return array |
|
4484 | + * @return string |
|
4487 | 4485 | */ |
4488 | 4486 | function _formatSubjectPublicKey() |
4489 | 4487 | { |
@@ -4517,7 +4515,6 @@ discard block |
||
4517 | 4515 | * Set the IP Addresses's which the cert is to be valid for |
4518 | 4516 | * |
4519 | 4517 | * @access public |
4520 | - * @param string $ipAddress optional |
|
4521 | 4518 | */ |
4522 | 4519 | function setIPAddress() |
4523 | 4520 | { |
@@ -1329,7 +1329,7 @@ discard block |
||
1329 | 1329 | * </code> |
1330 | 1330 | * |
1331 | 1331 | * @param \phpseclib\Math\BigInteger $y |
1332 | - * @return array |
|
1332 | + * @return BigInteger[] |
|
1333 | 1333 | * @access public |
1334 | 1334 | * @internal This function is based off of {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=9 HAC 14.20}. |
1335 | 1335 | */ |
@@ -2360,7 +2360,7 @@ discard block |
||
2360 | 2360 | * </code> |
2361 | 2361 | * |
2362 | 2362 | * @param \phpseclib\Math\BigInteger $n |
2363 | - * @return \phpseclib\Math\BigInteger|false |
|
2363 | + * @return BigInteger |
|
2364 | 2364 | * @access public |
2365 | 2365 | * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=21 HAC 14.64} for more information. |
2366 | 2366 | */ |
@@ -3048,8 +3048,6 @@ discard block |
||
3048 | 3048 | * BigInteger::randomRange($min, $max) |
3049 | 3049 | * BigInteger::randomRange($max, $min) |
3050 | 3050 | * |
3051 | - * @param \phpseclib\Math\BigInteger $arg1 |
|
3052 | - * @param \phpseclib\Math\BigInteger $arg2 |
|
3053 | 3051 | * @return \phpseclib\Math\BigInteger |
3054 | 3052 | * @access public |
3055 | 3053 | */ |
@@ -3553,8 +3551,8 @@ discard block |
||
3553 | 3551 | /** |
3554 | 3552 | * Array Repeat |
3555 | 3553 | * |
3556 | - * @param $input Array |
|
3557 | - * @param $multiplier mixed |
|
3554 | + * @param integer $input Array |
|
3555 | + * @param integer $multiplier mixed |
|
3558 | 3556 | * @return array |
3559 | 3557 | * @access private |
3560 | 3558 | */ |
@@ -3569,7 +3567,7 @@ discard block |
||
3569 | 3567 | * Shifts binary strings $shift bits, essentially multiplying by 2**$shift. |
3570 | 3568 | * |
3571 | 3569 | * @param $x String |
3572 | - * @param $shift Integer |
|
3570 | + * @param integer $shift Integer |
|
3573 | 3571 | * @return string |
3574 | 3572 | * @access private |
3575 | 3573 | */ |
@@ -212,7 +212,7 @@ |
||
212 | 212 | * |
213 | 213 | * @param string $remote_file |
214 | 214 | * @param string $local_file |
215 | - * @return mixed |
|
215 | + * @return boolean|string |
|
216 | 216 | * @access public |
217 | 217 | */ |
218 | 218 | function get($remote_file, $local_file = false) |
@@ -384,7 +384,6 @@ discard block |
||
384 | 384 | * Login |
385 | 385 | * |
386 | 386 | * @param string $username |
387 | - * @param string $password |
|
388 | 387 | * @throws \UnexpectedValueException on receipt of unexpected packets |
389 | 388 | * @return bool |
390 | 389 | * @access public |
@@ -573,7 +572,7 @@ discard block |
||
573 | 572 | /** |
574 | 573 | * Returns the current directory name |
575 | 574 | * |
576 | - * @return mixed |
|
575 | + * @return string |
|
577 | 576 | * @access public |
578 | 577 | */ |
579 | 578 | function pwd() |
@@ -611,7 +610,7 @@ discard block |
||
611 | 610 | * path and returns the canonicalized absolute pathname. |
612 | 611 | * |
613 | 612 | * @param string $path |
614 | - * @return mixed |
|
613 | + * @return false|string |
|
615 | 614 | * @access public |
616 | 615 | */ |
617 | 616 | function realpath($path) |
@@ -628,7 +627,7 @@ discard block |
||
628 | 627 | * @see self::chdir() |
629 | 628 | * @param string $path |
630 | 629 | * @throws \UnexpectedValueException on receipt of unexpected packets |
631 | - * @return mixed |
|
630 | + * @return false|string |
|
632 | 631 | * @access private |
633 | 632 | */ |
634 | 633 | function _realpath($path) |
@@ -1101,7 +1100,7 @@ discard block |
||
1101 | 1100 | * Remove files / directories from cache |
1102 | 1101 | * |
1103 | 1102 | * @param string $path |
1104 | - * @return bool |
|
1103 | + * @return boolean|null |
|
1105 | 1104 | * @access private |
1106 | 1105 | */ |
1107 | 1106 | function _remove_from_stat_cache($path) |
@@ -1127,7 +1126,7 @@ discard block |
||
1127 | 1126 | * |
1128 | 1127 | * Mainly used by file_exists |
1129 | 1128 | * |
1130 | - * @param string $dir |
|
1129 | + * @param false|string $path |
|
1131 | 1130 | * @return mixed |
1132 | 1131 | * @access private |
1133 | 1132 | */ |
@@ -1588,7 +1587,7 @@ discard block |
||
1588 | 1587 | * |
1589 | 1588 | * @param string $link |
1590 | 1589 | * @throws \UnexpectedValueException on receipt of unexpected packets |
1591 | - * @return mixed |
|
1590 | + * @return false|string |
|
1592 | 1591 | * @access public |
1593 | 1592 | */ |
1594 | 1593 | function readlink($link) |
@@ -1702,6 +1701,7 @@ discard block |
||
1702 | 1701 | * Helper function for directory creation |
1703 | 1702 | * |
1704 | 1703 | * @param string $dir |
1704 | + * @param string $attr |
|
1705 | 1705 | * @return bool |
1706 | 1706 | * @throws \UnexpectedValueException on receipt of unexpected packets |
1707 | 1707 | * @access private |
@@ -2034,7 +2034,7 @@ discard block |
||
2034 | 2034 | * @param int $offset |
2035 | 2035 | * @param int $length |
2036 | 2036 | * @throws \UnexpectedValueException on receipt of unexpected packets |
2037 | - * @return mixed |
|
2037 | + * @return string|boolean |
|
2038 | 2038 | * @access public |
2039 | 2039 | */ |
2040 | 2040 | function get($remote_file, $local_file = false, $offset = 0, $length = -1) |
@@ -2504,7 +2504,7 @@ discard block |
||
2504 | 2504 | * Gets file type |
2505 | 2505 | * |
2506 | 2506 | * @param string $path |
2507 | - * @return mixed |
|
2507 | + * @return false|string |
|
2508 | 2508 | * @access public |
2509 | 2509 | */ |
2510 | 2510 | function filetype($path) |
@@ -2569,6 +2569,7 @@ discard block |
||
2569 | 2569 | * |
2570 | 2570 | * @param string $path |
2571 | 2571 | * @param string $prop |
2572 | + * @param string $type |
|
2572 | 2573 | * @return mixed |
2573 | 2574 | * @access private |
2574 | 2575 | */ |
@@ -2647,7 +2648,7 @@ discard block |
||
2647 | 2648 | * See '7. File Attributes' of draft-ietf-secsh-filexfer-13 for more info. |
2648 | 2649 | * |
2649 | 2650 | * @param string $response |
2650 | - * @return array |
|
2651 | + * @return string |
|
2651 | 2652 | * @access private |
2652 | 2653 | */ |
2653 | 2654 | function _parseAttributes(&$response) |
@@ -2952,7 +2953,7 @@ discard block |
||
2952 | 2953 | * Disconnect |
2953 | 2954 | * |
2954 | 2955 | * @param int $reason |
2955 | - * @return bool |
|
2956 | + * @return boolean|null |
|
2956 | 2957 | * @access private |
2957 | 2958 | */ |
2958 | 2959 | function _disconnect($reason) |
@@ -626,7 +626,6 @@ |
||
626 | 626 | * $options. What does 8 correspond to? |
627 | 627 | * |
628 | 628 | * @param string $path |
629 | - * @param int $mode |
|
630 | 629 | * @param int $options |
631 | 630 | * @return bool |
632 | 631 | * @access public |
@@ -791,7 +791,7 @@ discard block |
||
791 | 791 | * @see self::interactiveRead() |
792 | 792 | * @see self::interactiveWrite() |
793 | 793 | * @param string $cmd |
794 | - * @return mixed |
|
794 | + * @return boolean|string |
|
795 | 795 | * @throws \RuntimeException on error sending command |
796 | 796 | * @access public |
797 | 797 | */ |
@@ -899,7 +899,7 @@ discard block |
||
899 | 899 | * @see self::write() |
900 | 900 | * @param string $expect |
901 | 901 | * @param int $mode |
902 | - * @return bool |
|
902 | + * @return string|null |
|
903 | 903 | * @throws \RuntimeException on connection error |
904 | 904 | * @access public |
905 | 905 | */ |
@@ -1282,8 +1282,8 @@ discard block |
||
1282 | 1282 | * |
1283 | 1283 | * @see self::__construct() |
1284 | 1284 | * @param BigInteger $m |
1285 | - * @param array $key |
|
1286 | - * @return BigInteger |
|
1285 | + * @param BigInteger[] $key |
|
1286 | + * @return string |
|
1287 | 1287 | * @access private |
1288 | 1288 | */ |
1289 | 1289 | function _rsa_crypt($m, $key) |
@@ -1331,7 +1331,6 @@ discard block |
||
1331 | 1331 | * named constants from it, using the value as the name of the constant and the index as the value of the constant. |
1332 | 1332 | * If any of the constants that would be defined already exists, none of the constants will be defined. |
1333 | 1333 | * |
1334 | - * @param array $array |
|
1335 | 1334 | * @access private |
1336 | 1335 | */ |
1337 | 1336 | function _define_array() |
@@ -1530,8 +1529,9 @@ discard block |
||
1530 | 1529 | * |
1531 | 1530 | * Makes sure that only the last 1MB worth of packets will be logged |
1532 | 1531 | * |
1533 | - * @param string $data |
|
1534 | 1532 | * @access private |
1533 | + * @param string $protocol_flags |
|
1534 | + * @param string $message |
|
1535 | 1535 | */ |
1536 | 1536 | function _append_log($protocol_flags, $message) |
1537 | 1537 | { |
@@ -903,7 +903,7 @@ discard block |
||
903 | 903 | * |
904 | 904 | * $host can either be a string, representing the host, or a stream resource. |
905 | 905 | * |
906 | - * @param mixed $host |
|
906 | + * @param string $host |
|
907 | 907 | * @param int $port |
908 | 908 | * @param int $timeout |
909 | 909 | * @see self::login() |
@@ -1894,8 +1894,6 @@ discard block |
||
1894 | 1894 | * The $password parameter can be a plaintext password, a \phpseclib\Crypt\RSA object or an array |
1895 | 1895 | * |
1896 | 1896 | * @param string $username |
1897 | - * @param mixed $password |
|
1898 | - * @param mixed $... |
|
1899 | 1897 | * @return bool |
1900 | 1898 | * @see self::_login() |
1901 | 1899 | * @access public |
@@ -1910,9 +1908,7 @@ discard block |
||
1910 | 1908 | * Login Helper |
1911 | 1909 | * |
1912 | 1910 | * @param string $username |
1913 | - * @param mixed $password |
|
1914 | - * @param mixed $... |
|
1915 | - * @return bool |
|
1911 | + * @return boolean|null |
|
1916 | 1912 | * @see self::_login_helper() |
1917 | 1913 | * @access private |
1918 | 1914 | */ |
@@ -1942,7 +1938,7 @@ discard block |
||
1942 | 1938 | * |
1943 | 1939 | * @param string $username |
1944 | 1940 | * @param string $password |
1945 | - * @return bool |
|
1941 | + * @return boolean|null |
|
1946 | 1942 | * @throws \UnexpectedValueException on receipt of unexpected packets |
1947 | 1943 | * @throws \RuntimeException on other errors |
1948 | 1944 | * @access private |
@@ -2144,7 +2140,6 @@ discard block |
||
2144 | 2140 | /** |
2145 | 2141 | * Handle the keyboard-interactive requests / responses. |
2146 | 2142 | * |
2147 | - * @param string $responses... |
|
2148 | 2143 | * @return bool |
2149 | 2144 | * @throws \RuntimeException on connection error |
2150 | 2145 | * @access private |
@@ -2280,7 +2275,6 @@ discard block |
||
2280 | 2275 | * Login with an RSA private key |
2281 | 2276 | * |
2282 | 2277 | * @param string $username |
2283 | - * @param \phpseclib\Crypt\RSA $password |
|
2284 | 2278 | * @return bool |
2285 | 2279 | * @throws \RuntimeException on connection error |
2286 | 2280 | * @access private |
@@ -3016,6 +3010,7 @@ discard block |
||
3016 | 3010 | * Because some binary packets need to be ignored... |
3017 | 3011 | * |
3018 | 3012 | * @see self::_get_binary_packet() |
3013 | + * @param string $payload |
|
3019 | 3014 | * @return string |
3020 | 3015 | * @access private |
3021 | 3016 | */ |
@@ -3212,7 +3207,7 @@ discard block |
||
3212 | 3207 | * |
3213 | 3208 | * Returns the data as a string if it's available and false if not. |
3214 | 3209 | * |
3215 | - * @param $client_channel |
|
3210 | + * @param integer $client_channel |
|
3216 | 3211 | * @return mixed |
3217 | 3212 | * @throws \RuntimeException on connection error |
3218 | 3213 | * @access private |
@@ -3490,8 +3485,8 @@ discard block |
||
3490 | 3485 | * |
3491 | 3486 | * Makes sure that only the last 1MB worth of packets will be logged |
3492 | 3487 | * |
3493 | - * @param string $data |
|
3494 | 3488 | * @access private |
3489 | + * @param string $message_number |
|
3495 | 3490 | */ |
3496 | 3491 | function _append_log($message_number, $message) |
3497 | 3492 | { |
@@ -3616,7 +3611,7 @@ discard block |
||
3616 | 3611 | * |
3617 | 3612 | * @param int $client_channel |
3618 | 3613 | * @param bool $want_reply |
3619 | - * @return bool |
|
3614 | + * @return boolean|null |
|
3620 | 3615 | * @access private |
3621 | 3616 | */ |
3622 | 3617 | function _close_channel($client_channel, $want_reply = false) |
@@ -3649,7 +3644,7 @@ discard block |
||
3649 | 3644 | * Disconnect |
3650 | 3645 | * |
3651 | 3646 | * @param int $reason |
3652 | - * @return bool |
|
3647 | + * @return false|null |
|
3653 | 3648 | * @access private |
3654 | 3649 | */ |
3655 | 3650 | function _disconnect($reason) |
@@ -3670,7 +3665,6 @@ discard block |
||
3670 | 3665 | * named constants from it, using the value as the name of the constant and the index as the value of the constant. |
3671 | 3666 | * If any of the constants that would be defined already exists, none of the constants will be defined. |
3672 | 3667 | * |
3673 | - * @param array $array |
|
3674 | 3668 | * @access private |
3675 | 3669 | */ |
3676 | 3670 | function _define_array() |
@@ -3781,9 +3775,9 @@ discard block |
||
3781 | 3775 | * Returns the first value of the intersection of two arrays or false if |
3782 | 3776 | * the intersection is empty. The order is defined by the first parameter. |
3783 | 3777 | * |
3784 | - * @param array $array1 |
|
3778 | + * @param string[] $array1 |
|
3785 | 3779 | * @param array $array2 |
3786 | - * @return mixed False if intersection is empty, else intersected value. |
|
3780 | + * @return string False if intersection is empty, else intersected value. |
|
3787 | 3781 | * @access private |
3788 | 3782 | */ |
3789 | 3783 | function _array_intersect_first($array1, $array2) |
@@ -3799,7 +3793,7 @@ discard block |
||
3799 | 3793 | /** |
3800 | 3794 | * Returns all errors |
3801 | 3795 | * |
3802 | - * @return string[] |
|
3796 | + * @return string |
|
3803 | 3797 | * @access public |
3804 | 3798 | */ |
3805 | 3799 | function getErrors() |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * be requested when a channel is opened |
207 | 207 | * |
208 | 208 | * @param Net_SSH2 $ssh |
209 | - * @return bool |
|
209 | + * @return boolean|null |
|
210 | 210 | * @access public |
211 | 211 | */ |
212 | 212 | function startSSHForwarding($ssh) |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * Forward data to SSH Agent and return data reply |
278 | 278 | * |
279 | 279 | * @param string $data |
280 | - * @return data from SSH Agent |
|
280 | + * @return false|string from SSH Agent |
|
281 | 281 | * @throws \RuntimeException on connection errors |
282 | 282 | * @access private |
283 | 283 | */ |
@@ -51,6 +51,9 @@ |
||
51 | 51 | return $this->getContent($this->getUrl($qrtext, $size)); |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param string $value |
|
56 | + */ |
|
54 | 57 | private function decodeColor($value) |
55 | 58 | { |
56 | 59 | return vsprintf('%d-%d-%d', sscanf($value, "%02x%02x%02x")); |