@@ -339,6 +339,9 @@ discard block |
||
339 | 339 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
340 | 340 | } |
341 | 341 | |
342 | + /** |
|
343 | + * @param string $name |
|
344 | + */ |
|
342 | 345 | public function js_dialog( $name, $params = array() ) { |
343 | 346 | if ( true !== $this->open_link_in_new ) { |
344 | 347 | return; |
@@ -1458,6 +1461,9 @@ discard block |
||
1458 | 1461 | return __( 'Pinterest', 'jetpack' ); |
1459 | 1462 | } |
1460 | 1463 | |
1464 | + /** |
|
1465 | + * @return string |
|
1466 | + */ |
|
1461 | 1467 | public function get_image( $post ) { |
1462 | 1468 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
1463 | 1469 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | * @access public |
503 | 503 | * |
504 | 504 | * @param array $config Full sync configuration for this sync module. |
505 | - * @return array Number of items yet to be enqueued. |
|
505 | + * @return integer Number of items yet to be enqueued. |
|
506 | 506 | */ |
507 | 507 | public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
508 | 508 | return 1; |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | * |
523 | 523 | * @access public |
524 | 524 | * |
525 | - * @return array Full sync actions of this module. |
|
525 | + * @return string[] Full sync actions of this module. |
|
526 | 526 | */ |
527 | 527 | public function get_full_sync_actions() { |
528 | 528 | return array( 'jetpack_full_sync_theme_data' ); |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | * Only enqueue block assets when needed. |
519 | 519 | * |
520 | 520 | * @param string $type Slug of the block. |
521 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
521 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
522 | 522 | * detected script dependencies from the webpack build. |
523 | 523 | * |
524 | 524 | * @return void |
@@ -866,10 +866,10 @@ discard block |
||
866 | 866 | * @since 8.3.0 |
867 | 867 | * |
868 | 868 | * @param string $url URL saved as an attribute in block. |
869 | - * @param array $allowed Array of allowed hosts for that block, or regexes to check against. |
|
869 | + * @param string[] $allowed Array of allowed hosts for that block, or regexes to check against. |
|
870 | 870 | * @param bool $is_regex Array of regexes matching the URL that could be used in block. |
871 | 871 | * |
872 | - * @return bool|string |
|
872 | + * @return false|string |
|
873 | 873 | */ |
874 | 874 | public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) { |
875 | 875 | if ( |