@@ -416,7 +416,7 @@ |
||
| 416 | 416 | * Only enqueue block assets when needed. |
| 417 | 417 | * |
| 418 | 418 | * @param string $type Slug of the block. |
| 419 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
| 419 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
| 420 | 420 | * detected script dependencies from the webpack build. |
| 421 | 421 | * |
| 422 | 422 | * @return void |
@@ -380,7 +380,7 @@ |
||
| 380 | 380 | * |
| 381 | 381 | * @param string $option Option value from the site. |
| 382 | 382 | * @param callable $url_function Function retrieving the URL to normalize. |
| 383 | - * @return mixed|string URL. |
|
| 383 | + * @return callable URL. |
|
| 384 | 384 | */ |
| 385 | 385 | public static function normalize_www_in_url( $option, $url_function ) { |
| 386 | 386 | $url = wp_parse_url( call_user_func( $url_function ) ); |
@@ -271,6 +271,9 @@ discard block |
||
| 271 | 271 | } |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | + /** |
|
| 275 | + * @param string $type |
|
| 276 | + */ |
|
| 274 | 277 | static function get_video_poster( $type, $id ) { |
| 275 | 278 | if ( 'videopress' == $type ) { |
| 276 | 279 | if ( function_exists( 'video_get_highest_resolution_image_url' ) ) { |
@@ -356,6 +359,9 @@ discard block |
||
| 356 | 359 | return (int) count( self::split_content_in_words( self::clean_text( $post_content ) ) ); |
| 357 | 360 | } |
| 358 | 361 | |
| 362 | + /** |
|
| 363 | + * @param string $excerpt_content |
|
| 364 | + */ |
|
| 359 | 365 | static function get_word_remaining_count( $post_content, $excerpt_content ) { |
| 360 | 366 | $content_word_count = count( self::split_content_in_words( self::clean_text( $post_content ) ) ); |
| 361 | 367 | $excerpt_word_count = count( self::split_content_in_words( self::clean_text( $excerpt_content ) ) ); |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Record an event. |
| 54 | 54 | * |
| 55 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
| 55 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
| 56 | 56 | * Properties are included directly in the pixel query string after light validation. |
| 57 | 57 | * @return mixed True on success, WP_Error on failure |
| 58 | 58 | */ |