@@ -363,7 +363,7 @@ |
||
| 363 | 363 | * Only enqueue block assets when needed. |
| 364 | 364 | * |
| 365 | 365 | * @param string $type slug of the block. |
| 366 | - * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 366 | + * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued. |
|
| 367 | 367 | * |
| 368 | 368 | * @return void |
| 369 | 369 | */ |
@@ -244,6 +244,9 @@ |
||
| 244 | 244 | } |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | + /** |
|
| 248 | + * @param string $capability |
|
| 249 | + */ |
|
| 247 | 250 | protected function current_user_can( $capability, $plugin = null ) { |
| 248 | 251 | if ( $plugin ) { |
| 249 | 252 | return current_user_can( $capability, $plugin ); |
@@ -543,6 +543,7 @@ |
||
| 543 | 543 | * @internal |
| 544 | 544 | * |
| 545 | 545 | * @param bool &$error Did the remote request result in an error? |
| 546 | + * @param boolean $error |
|
| 546 | 547 | * @return bool True if PSH is active. |
| 547 | 548 | */ |
| 548 | 549 | function jetpack_get_remote_is_psh_active( &$error ) { |
@@ -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 str_word_count( 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 | /** |
| 361 | 367 | * es_api_word_count is useful to count words in all languages. |
@@ -13,6 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | private $type_of = null; |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param string $type_of |
|
| 18 | + */ |
|
| 16 | 19 | function __construct( $type_of ) { |
| 17 | 20 | $this->type_of = $type_of; |
| 18 | 21 | } |