@@ -43,6 +43,7 @@ |
||
43 | 43 | * @param String $action The action name. |
44 | 44 | * @param Integer|bool $user_id The user identifier. Defaults to `false`. |
45 | 45 | * @param Integer $exp Expiration time in seconds. |
46 | + * @return string|boolean |
|
46 | 47 | */ |
47 | 48 | public function generate( $action, $user_id = false, $exp = 600 ) { |
48 | 49 | if ( false === $user_id ) { |
@@ -138,7 +138,7 @@ |
||
138 | 138 | * Extract the index and count from a prerelease string. |
139 | 139 | * |
140 | 140 | * @param string|null $s String. |
141 | - * @return array Two elements: index and count. |
|
141 | + * @return integer[] Two elements: index and count. |
|
142 | 142 | * @throws InvalidArgumentException If the string is invalid. |
143 | 143 | */ |
144 | 144 | private function parsePrerelease( $s ) { |
@@ -885,6 +885,9 @@ discard block |
||
885 | 885 | return ( 1 == $value ) ? 1 : 0; |
886 | 886 | } |
887 | 887 | |
888 | + /** |
|
889 | + * @param string $name |
|
890 | + */ |
|
888 | 891 | function settings_checkbox( $name, $label_text, $extra_text = '', $default_to_checked = true ) { |
889 | 892 | if ( empty( $name ) ) { |
890 | 893 | return; |
@@ -900,6 +903,9 @@ discard block |
||
900 | 903 | echo '</fieldset>'; |
901 | 904 | } |
902 | 905 | |
906 | + /** |
|
907 | + * @param string $name |
|
908 | + */ |
|
903 | 909 | function settings_select( $name, $values, $extra_text = '' ) { |
904 | 910 | if ( empty( $name ) || ! is_array( $values ) || empty( $values ) ) { |
905 | 911 | return; |