@@ -221,7 +221,7 @@ |
||
221 | 221 | /** |
222 | 222 | * Filter and replace HTML element. |
223 | 223 | * |
224 | - * @param array $matches Array of matches. |
|
224 | + * @param string[] $matches Array of matches. |
|
225 | 225 | */ |
226 | 226 | private static function dispatch( $matches ) { |
227 | 227 | $html = preg_replace( '%�*58;//%', '://', $matches[0] ); |
@@ -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 ) ) ); |