@@ -325,7 +325,7 @@ |
||
325 | 325 | * @access protected |
326 | 326 | * |
327 | 327 | * @param string $status Comment status. |
328 | - * @return string|bool New comment_approved value, false if the status doesn't affect it. |
|
328 | + * @return string|false New comment_approved value, false if the status doesn't affect it. |
|
329 | 329 | */ |
330 | 330 | protected function comment_status_to_approval_value( $status ) { |
331 | 331 | switch ( (string) $status ) { |
@@ -145,7 +145,7 @@ |
||
145 | 145 | * @param string $url URL of the content to be embedded. |
146 | 146 | * @param array $atts Shortcode attributes. |
147 | 147 | * |
148 | - * @return array $params Array of parameters to be used in Instagram query. |
|
148 | + * @return string $params Array of parameters to be used in Instagram query. |
|
149 | 149 | */ |
150 | 150 | function jetpack_instagram_get_allowed_parameters( $url, $atts = array() ) { |
151 | 151 | global $content_width; |
@@ -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' ); |
@@ -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 |