@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | * Serves a similar purpose to openssl's asn1parse |
264 | 264 | * |
265 | 265 | * @param String $encoded |
266 | - * @return Array |
|
266 | + * @return string |
|
267 | 267 | * @access public |
268 | 268 | */ |
269 | 269 | function decodeBER($encoded) |
@@ -776,7 +776,6 @@ discard block |
||
776 | 776 | * |
777 | 777 | * @param String $source |
778 | 778 | * @param String $mapping |
779 | - * @param Integer $idx |
|
780 | 779 | * @return String |
781 | 780 | * @access public |
782 | 781 | */ |
@@ -1095,7 +1094,7 @@ discard block |
||
1095 | 1094 | * @access private |
1096 | 1095 | * @param String $content |
1097 | 1096 | * @param Integer $tag |
1098 | - * @return String |
|
1097 | + * @return double |
|
1099 | 1098 | */ |
1100 | 1099 | function _decodeTime($content, $tag) |
1101 | 1100 | { |
@@ -1653,7 +1653,7 @@ discard block |
||
1653 | 1653 | * |
1654 | 1654 | * @param Array ref $root |
1655 | 1655 | * @param String $path |
1656 | - * @param Object $asn1 |
|
1656 | + * @param File_ASN1 $asn1 |
|
1657 | 1657 | * @access private |
1658 | 1658 | */ |
1659 | 1659 | function _mapInAttributes(&$root, $path, $asn1) |
@@ -1694,7 +1694,7 @@ discard block |
||
1694 | 1694 | * |
1695 | 1695 | * @param Array ref $root |
1696 | 1696 | * @param String $path |
1697 | - * @param Object $asn1 |
|
1697 | + * @param File_ASN1 $asn1 |
|
1698 | 1698 | * @access private |
1699 | 1699 | */ |
1700 | 1700 | function _mapOutAttributes(&$root, $path, $asn1) |
@@ -2111,7 +2111,7 @@ discard block |
||
2111 | 2111 | * @param String $signature |
2112 | 2112 | * @param String $signatureSubject |
2113 | 2113 | * @access private |
2114 | - * @return Integer |
|
2114 | + * @return null|boolean |
|
2115 | 2115 | */ |
2116 | 2116 | function _validateSignature($publicKeyAlgorithm, $publicKey, $signatureAlgorithm, $signature, $signatureSubject) |
2117 | 2117 | { |
@@ -2179,7 +2179,7 @@ discard block |
||
2179 | 2179 | * |
2180 | 2180 | * @param String $propName |
2181 | 2181 | * @access private |
2182 | - * @return Mixed |
|
2182 | + * @return string|false |
|
2183 | 2183 | */ |
2184 | 2184 | function _translateDNProp($propName) |
2185 | 2185 | { |
@@ -2421,7 +2421,7 @@ discard block |
||
2421 | 2421 | /** |
2422 | 2422 | * Get the Distinguished Name for a certificates subject |
2423 | 2423 | * |
2424 | - * @param Mixed $format optional |
|
2424 | + * @param integer $format optional |
|
2425 | 2425 | * @param Array $dn optional |
2426 | 2426 | * @access public |
2427 | 2427 | * @return Boolean |
@@ -2568,7 +2568,7 @@ discard block |
||
2568 | 2568 | * |
2569 | 2569 | * @param Integer $format optional |
2570 | 2570 | * @access public |
2571 | - * @return Mixed |
|
2571 | + * @return boolean |
|
2572 | 2572 | */ |
2573 | 2573 | function getIssuerDN($format = FILE_X509_DN_ARRAY) |
2574 | 2574 | { |
@@ -2590,7 +2590,7 @@ discard block |
||
2590 | 2590 | * |
2591 | 2591 | * @param Integer $format optional |
2592 | 2592 | * @access public |
2593 | - * @return Mixed |
|
2593 | + * @return boolean |
|
2594 | 2594 | */ |
2595 | 2595 | function getSubjectDN($format = FILE_X509_DN_ARRAY) |
2596 | 2596 | { |
@@ -2706,7 +2706,7 @@ discard block |
||
2706 | 2706 | * |
2707 | 2707 | * @param Object $key |
2708 | 2708 | * @access public |
2709 | - * @return Boolean |
|
2709 | + * @return boolean|null |
|
2710 | 2710 | */ |
2711 | 2711 | function setPublicKey($key) |
2712 | 2712 | { |
@@ -3427,7 +3427,6 @@ discard block |
||
3427 | 3427 | * X.509 certificate signing helper function. |
3428 | 3428 | * |
3429 | 3429 | * @param Object $key |
3430 | - * @param File_X509 $subject |
|
3431 | 3430 | * @param String $signatureAlgorithm |
3432 | 3431 | * @access public |
3433 | 3432 | * @return Mixed |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * ?> |
252 | 252 | * </code> |
253 | 253 | * |
254 | - * @param optional $x base-10 number or base-$base number if $base set. |
|
254 | + * @param integer $x base-10 number or base-$base number if $base set. |
|
255 | 255 | * @param optional integer $base |
256 | 256 | * @return Math_BigInteger |
257 | 257 | * @access public |
@@ -1368,7 +1368,7 @@ discard block |
||
1368 | 1368 | * </code> |
1369 | 1369 | * |
1370 | 1370 | * @param Math_BigInteger $y |
1371 | - * @return Array |
|
1371 | + * @return Math_BigInteger[] |
|
1372 | 1372 | * @access public |
1373 | 1373 | * @internal This function is based off of {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=9 HAC 14.20}. |
1374 | 1374 | */ |
@@ -3520,8 +3520,8 @@ discard block |
||
3520 | 3520 | /** |
3521 | 3521 | * Array Repeat |
3522 | 3522 | * |
3523 | - * @param $input Array |
|
3524 | - * @param $multiplier mixed |
|
3523 | + * @param integer $input Array |
|
3524 | + * @param integer $multiplier mixed |
|
3525 | 3525 | * @return Array |
3526 | 3526 | * @access private |
3527 | 3527 | */ |
@@ -3536,7 +3536,7 @@ discard block |
||
3536 | 3536 | * Shifts binary strings $shift bits, essentially multiplying by 2**$shift. |
3537 | 3537 | * |
3538 | 3538 | * @param $x String |
3539 | - * @param $shift Integer |
|
3539 | + * @param integer $shift Integer |
|
3540 | 3540 | * @return String |
3541 | 3541 | * @access private |
3542 | 3542 | */ |
@@ -3565,7 +3565,7 @@ discard block |
||
3565 | 3565 | * Shifts binary strings $shift bits, essentially dividing by 2**$shift and returning the remainder. |
3566 | 3566 | * |
3567 | 3567 | * @param $x String |
3568 | - * @param $shift Integer |
|
3568 | + * @param integer $shift Integer |
|
3569 | 3569 | * @return String |
3570 | 3570 | * @access private |
3571 | 3571 | */ |
@@ -117,7 +117,6 @@ discard block |
||
117 | 117 | * |
118 | 118 | * Connects to an SSH server |
119 | 119 | * |
120 | - * @param String $host |
|
121 | 120 | * @param optional Integer $port |
122 | 121 | * @param optional Integer $timeout |
123 | 122 | * @return Net_SCP |
@@ -161,7 +160,7 @@ discard block |
||
161 | 160 | * @param String $remote_file |
162 | 161 | * @param String $data |
163 | 162 | * @param optional Integer $mode |
164 | - * @return Boolean |
|
163 | + * @return false|null |
|
165 | 164 | * @access public |
166 | 165 | */ |
167 | 166 | function put($remote_file, $data, $mode = NET_SCP_STRING) |
@@ -218,7 +217,7 @@ discard block |
||
218 | 217 | * |
219 | 218 | * @param String $remote_file |
220 | 219 | * @param optional String $local_file |
221 | - * @return Mixed |
|
220 | + * @return boolean|string |
|
222 | 221 | * @access public |
223 | 222 | */ |
224 | 223 | function get($remote_file, $local_file = false) |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | /** |
511 | 511 | * Returns the current directory name |
512 | 512 | * |
513 | - * @return Mixed |
|
513 | + * @return string |
|
514 | 514 | * @access public |
515 | 515 | */ |
516 | 516 | function pwd() |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | * |
550 | 550 | * @see Net_SFTP::chdir() |
551 | 551 | * @param String $path |
552 | - * @return Mixed |
|
552 | + * @return false|string |
|
553 | 553 | * @access private |
554 | 554 | */ |
555 | 555 | function _realpath($path) |
@@ -1374,6 +1374,7 @@ discard block |
||
1374 | 1374 | * Helper function for directory creation |
1375 | 1375 | * |
1376 | 1376 | * @param String $dir |
1377 | + * @param string $attr |
|
1377 | 1378 | * @return Boolean |
1378 | 1379 | * @access private |
1379 | 1380 | */ |
@@ -1626,7 +1627,7 @@ discard block |
||
1626 | 1627 | * @param optional String $local_file |
1627 | 1628 | * @param optional Integer $offset |
1628 | 1629 | * @param optional Integer $length |
1629 | - * @return Mixed |
|
1630 | + * @return string|boolean |
|
1630 | 1631 | * @access public |
1631 | 1632 | */ |
1632 | 1633 | function get($remote_file, $local_file = false, $offset = 0, $length = -1) |
@@ -2212,7 +2213,7 @@ discard block |
||
2212 | 2213 | * Disconnect |
2213 | 2214 | * |
2214 | 2215 | * @param Integer $reason |
2215 | - * @return Boolean |
|
2216 | + * @return boolean|null |
|
2216 | 2217 | * @access private |
2217 | 2218 | */ |
2218 | 2219 | function _disconnect($reason) |
@@ -593,7 +593,6 @@ |
||
593 | 593 | * $options. What does 8 correspond to? |
594 | 594 | * |
595 | 595 | * @param String $path |
596 | - * @param Integer $mode |
|
597 | 596 | * @param Integer $options |
598 | 597 | * @return Boolean |
599 | 598 | * @access public |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | * @see Net_SSH1::interactiveRead() |
733 | 733 | * @see Net_SSH1::interactiveWrite() |
734 | 734 | * @param String $cmd |
735 | - * @return mixed |
|
735 | + * @return boolean|string |
|
736 | 736 | * @access public |
737 | 737 | */ |
738 | 738 | function exec($cmd, $block = true) |
@@ -1245,8 +1245,8 @@ discard block |
||
1245 | 1245 | * |
1246 | 1246 | * @see Net_SSH1::Net_SSH1() |
1247 | 1247 | * @param Math_BigInteger $m |
1248 | - * @param Array $key |
|
1249 | - * @return Math_BigInteger |
|
1248 | + * @param Math_BigInteger[] $key |
|
1249 | + * @return string |
|
1250 | 1250 | * @access private |
1251 | 1251 | */ |
1252 | 1252 | function _rsa_crypt($m, $key) |
@@ -1298,7 +1298,6 @@ discard block |
||
1298 | 1298 | * named constants from it, using the value as the name of the constant and the index as the value of the constant. |
1299 | 1299 | * If any of the constants that would be defined already exists, none of the constants will be defined. |
1300 | 1300 | * |
1301 | - * @param Array $array |
|
1302 | 1301 | * @access private |
1303 | 1302 | */ |
1304 | 1303 | function _define_array() |
@@ -1491,8 +1490,9 @@ discard block |
||
1491 | 1490 | * |
1492 | 1491 | * Makes sure that only the last 1MB worth of packets will be logged |
1493 | 1492 | * |
1494 | - * @param String $data |
|
1495 | 1493 | * @access private |
1494 | + * @param string $protocol_flags |
|
1495 | + * @param string $message |
|
1496 | 1496 | */ |
1497 | 1497 | function _append_log($protocol_flags, $message) |
1498 | 1498 | { |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | * @param String $host |
736 | 736 | * @param optional Integer $port |
737 | 737 | * @param optional Integer $timeout |
738 | - * @return Net_SSH2 |
|
738 | + * @return null|false |
|
739 | 739 | * @access public |
740 | 740 | */ |
741 | 741 | function Net_SSH2($host, $port = 22, $timeout = 10) |
@@ -1588,9 +1588,7 @@ discard block |
||
1588 | 1588 | * The $password parameter can be a plaintext password, a Crypt_RSA object or an array |
1589 | 1589 | * |
1590 | 1590 | * @param String $username |
1591 | - * @param Mixed $password |
|
1592 | - * @param Mixed $... |
|
1593 | - * @return Boolean |
|
1591 | + * @return boolean|null |
|
1594 | 1592 | * @see _login_helper |
1595 | 1593 | * @access public |
1596 | 1594 | */ |
@@ -1614,7 +1612,7 @@ discard block |
||
1614 | 1612 | * |
1615 | 1613 | * @param String $username |
1616 | 1614 | * @param optional String $password |
1617 | - * @return Boolean |
|
1615 | + * @return boolean|null |
|
1618 | 1616 | * @access private |
1619 | 1617 | * @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis} |
1620 | 1618 | * by sending dummy SSH_MSG_IGNORE messages. |
@@ -1779,7 +1777,6 @@ discard block |
||
1779 | 1777 | /** |
1780 | 1778 | * Handle the keyboard-interactive requests / responses. |
1781 | 1779 | * |
1782 | - * @param String $responses... |
|
1783 | 1780 | * @return Boolean |
1784 | 1781 | * @access private |
1785 | 1782 | */ |
@@ -1896,7 +1893,6 @@ discard block |
||
1896 | 1893 | * Login with an RSA private key |
1897 | 1894 | * |
1898 | 1895 | * @param String $username |
1899 | - * @param Crypt_RSA $password |
|
1900 | 1896 | * @return Boolean |
1901 | 1897 | * @access private |
1902 | 1898 | * @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis} |
@@ -2131,7 +2127,7 @@ discard block |
||
2131 | 2127 | * |
2132 | 2128 | * @see Net_SSH2::read() |
2133 | 2129 | * @see Net_SSH2::write() |
2134 | - * @return Boolean |
|
2130 | + * @return boolean|null |
|
2135 | 2131 | * @access private |
2136 | 2132 | */ |
2137 | 2133 | function _initShell() |
@@ -2427,6 +2423,7 @@ discard block |
||
2427 | 2423 | * Because some binary packets need to be ignored... |
2428 | 2424 | * |
2429 | 2425 | * @see Net_SSH2::_get_binary_packet() |
2426 | + * @param string $payload |
|
2430 | 2427 | * @return String |
2431 | 2428 | * @access private |
2432 | 2429 | */ |
@@ -2556,7 +2553,7 @@ discard block |
||
2556 | 2553 | * |
2557 | 2554 | * Returns the data as a string if it's available and false if not. |
2558 | 2555 | * |
2559 | - * @param $client_channel |
|
2556 | + * @param integer $client_channel |
|
2560 | 2557 | * @return Mixed |
2561 | 2558 | * @access private |
2562 | 2559 | */ |
@@ -2795,8 +2792,9 @@ discard block |
||
2795 | 2792 | * |
2796 | 2793 | * Makes sure that only the last 1MB worth of packets will be logged |
2797 | 2794 | * |
2798 | - * @param String $data |
|
2799 | 2795 | * @access private |
2796 | + * @param string $message_number |
|
2797 | + * @param string $message |
|
2800 | 2798 | */ |
2801 | 2799 | function _append_log($message_number, $message) |
2802 | 2800 | { |
@@ -2894,7 +2892,7 @@ discard block |
||
2894 | 2892 | * for SCP more than anything. |
2895 | 2893 | * |
2896 | 2894 | * @param Integer $client_channel |
2897 | - * @return Boolean |
|
2895 | + * @return boolean|null |
|
2898 | 2896 | * @access private |
2899 | 2897 | */ |
2900 | 2898 | function _close_channel($client_channel) |
@@ -2920,7 +2918,7 @@ discard block |
||
2920 | 2918 | * Disconnect |
2921 | 2919 | * |
2922 | 2920 | * @param Integer $reason |
2923 | - * @return Boolean |
|
2921 | + * @return false|null |
|
2924 | 2922 | * @access private |
2925 | 2923 | */ |
2926 | 2924 | function _disconnect($reason) |
@@ -2958,7 +2956,6 @@ discard block |
||
2958 | 2956 | * named constants from it, using the value as the name of the constant and the index as the value of the constant. |
2959 | 2957 | * If any of the constants that would be defined already exists, none of the constants will be defined. |
2960 | 2958 | * |
2961 | - * @param Array $array |
|
2962 | 2959 | * @access private |
2963 | 2960 | */ |
2964 | 2961 | function _define_array() |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Returns the contents of the CSS defined by the plugin |
146 | - * @return array |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | public function get_css() |
149 | 149 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | /** |
163 | 163 | * Returns an HTML form (generated by FormValidator) of the plugin settings |
164 | - * @return string FormValidator-generated form |
|
164 | + * @return FormValidator FormValidator-generated form |
|
165 | 165 | */ |
166 | 166 | public function get_settings_form() |
167 | 167 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * @param boolean $add_tool_link Whether to add a tool link or not |
384 | 384 | * (some tools might just offer a configuration section and act on the backend) |
385 | 385 | * |
386 | - * @return boolean False on error, null otherwise |
|
386 | + * @return boolean|null False on error, null otherwise |
|
387 | 387 | */ |
388 | 388 | public function install_course_fields($courseId, $add_tool_link = true) |
389 | 389 | { |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * tool on the course's homepage |
492 | 492 | * @param int $courseId |
493 | 493 | * |
494 | - * @return void |
|
494 | + * @return false|null |
|
495 | 495 | */ |
496 | 496 | public function uninstall_course_fields($courseId) |
497 | 497 | { |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | * @param string $tabName |
597 | 597 | * @param string $url |
598 | 598 | * |
599 | - * @return boolean |
|
599 | + * @return false|string |
|
600 | 600 | */ |
601 | 601 | public function addTab($tabName, $url) |
602 | 602 | { |