@@ -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 |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * Mock a set of constants. |
313 | 313 | * |
314 | 314 | * @param array $constants Array of sets with constants and their respective values. |
315 | - * @return phpmock\Mock The mock object. |
|
315 | + * @return phpmock\Mock[] The mock object. |
|
316 | 316 | */ |
317 | 317 | protected function mock_constants( $constants = array() ) { |
318 | 318 | $prepare_constant = function ( $constant ) { |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | /** |
329 | 329 | * Mock $wpdb->get_var() and make it return a certain value. |
330 | 330 | * |
331 | - * @param mixed $return_value Return value of the function. |
|
331 | + * @param integer $return_value Return value of the function. |
|
332 | 332 | * |
333 | 333 | * PHPUnit\Framework\MockObject\MockObject The mock object. |
334 | 334 | */ |
@@ -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 |
@@ -150,7 +150,7 @@ |
||
150 | 150 | * Loads an RSS feed using `fetch_feed`. |
151 | 151 | * |
152 | 152 | * @param string $feed The RSS feed URL to load. |
153 | - * @return SimplePie|WP_Error The RSS object or error. |
|
153 | + * @return string The RSS object or error. |
|
154 | 154 | */ |
155 | 155 | public static function load_feed( $feed ) { |
156 | 156 | $rss = fetch_feed( esc_url_raw( $feed ) ); |