@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * Return an associative array of default values |
| 63 | 63 | * These values are used in new widgets as well as when sanitizing input. |
| 64 | 64 | * |
| 65 | - * @return array Array of default values for the Widget's options |
|
| 65 | + * @return string Array of default values for the Widget's options |
|
| 66 | 66 | */ |
| 67 | 67 | function defaults() { |
| 68 | 68 | return array( |
@@ -172,6 +172,9 @@ discard block |
||
| 172 | 172 | echo '</select></label></p></div>'; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param string $type |
|
| 177 | + */ |
|
| 175 | 178 | function _rss_link( $type, $args ) { |
| 176 | 179 | if ( 'posts' == $type ) { |
| 177 | 180 | $type_text = __( 'Posts', 'jetpack' ); |
@@ -220,7 +220,7 @@ |
||
| 220 | 220 | * Also used by @see self::test_request_port_constants |
| 221 | 221 | * |
| 222 | 222 | * @param mixed $http_x_forwarded_port value of $_SERVER[ 'HTTP_X_FORWARDED_PORT' ]. |
| 223 | - * @param mixed $server_port value of $_SERVER[ 'SERVER_PORT' ]. Null will unset the value. |
|
| 223 | + * @param string $server_port value of $_SERVER[ 'SERVER_PORT' ]. Null will unset the value. |
|
| 224 | 224 | * @param string $expeceted The expected output. Null will unset the value. |
| 225 | 225 | * @param boolean $ssl Whether to consider current request using SSL or not. |
| 226 | 226 | * |
@@ -595,7 +595,7 @@ |
||
| 595 | 595 | * |
| 596 | 596 | * @param array $dirty Unsantized data for the widget. |
| 597 | 597 | * |
| 598 | - * @return array Santized data. |
|
| 598 | + * @return integer Santized data. |
|
| 599 | 599 | */ |
| 600 | 600 | public function sanitize_instance( $dirty ) { |
| 601 | 601 | $now = (int) current_time( 'timestamp' ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | * |
| 229 | 229 | * @param string $notify_moderator The value of the moderation_notify option. |
| 230 | 230 | * @param int $comment_id Comment ID. |
| 231 | - * @return boolean Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 231 | + * @return string|false Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 232 | 232 | */ |
| 233 | 233 | function jetpack_notify_moderator( $notify_moderator, $comment_id ) { |
| 234 | 234 | |
@@ -294,7 +294,7 @@ |
||
| 294 | 294 | /** |
| 295 | 295 | * Mock $wpdb->get_var() and make it return a certain value. |
| 296 | 296 | * |
| 297 | - * @param mixed $return_value Return value of the function. |
|
| 297 | + * @param integer $return_value Return value of the function. |
|
| 298 | 298 | * |
| 299 | 299 | * PHPUnit\Framework\MockObject\MockObject The mock object. |
| 300 | 300 | */ |