@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | * Validate the require two step checkbox in Settings > General |
| 263 | 263 | * |
| 264 | 264 | * @since 2.7 |
| 265 | - * @return boolean |
|
| 265 | + * @return integer |
|
| 266 | 266 | **/ |
| 267 | 267 | public function validate_jetpack_sso_require_two_step( $input ) { |
| 268 | 268 | return ( ! empty( $input ) ) ? 1 : 0; |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * Validate the match by email check in Settings > General |
| 288 | 288 | * |
| 289 | 289 | * @since 2.9 |
| 290 | - * @return boolean |
|
| 290 | + * @return integer |
|
| 291 | 291 | **/ |
| 292 | 292 | public function validate_jetpack_sso_match_by_email( $input ) { |
| 293 | 293 | return ( ! empty( $input ) ) ? 1 : 0; |
@@ -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 ( |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * Get Stats Options. |
| 291 | 291 | * |
| 292 | 292 | * @access public |
| 293 | - * @param mixed $option Option. |
|
| 293 | + * @param string $option Option. |
|
| 294 | 294 | * @return mixed|null. |
| 295 | 295 | */ |
| 296 | 296 | function stats_get_option( $option ) { |
@@ -744,7 +744,7 @@ discard block |
||
| 744 | 744 | * Stats Convert Chart URLs. |
| 745 | 745 | * |
| 746 | 746 | * @access public |
| 747 | - * @param mixed $html HTML. |
|
| 747 | + * @param string $html HTML. |
|
| 748 | 748 | * @return string |
| 749 | 749 | */ |
| 750 | 750 | function stats_convert_chart_urls( $html ) { |
@@ -1414,7 +1414,7 @@ discard block |
||
| 1414 | 1414 | * |
| 1415 | 1415 | * @access public |
| 1416 | 1416 | * @param mixed $get Get. |
| 1417 | - * @param mixed $url URL. |
|
| 1417 | + * @param string $url URL. |
|
| 1418 | 1418 | * @return void |
| 1419 | 1419 | */ |
| 1420 | 1420 | function stats_print_wp_remote_error( $get, $url ) { |
@@ -1556,7 +1556,7 @@ discard block |
||
| 1556 | 1556 | * Stats get remote CSV. |
| 1557 | 1557 | * |
| 1558 | 1558 | * @access public |
| 1559 | - * @param mixed $url URL. |
|
| 1559 | + * @param string $url URL. |
|
| 1560 | 1560 | * @return array |
| 1561 | 1561 | */ |
| 1562 | 1562 | function stats_get_remote_csv( $url ) { |
@@ -220,6 +220,7 @@ |
||
| 220 | 220 | * Extracts the tweetable text from a block. |
| 221 | 221 | * |
| 222 | 222 | * @param array $block The block, as represented in the block editor. |
| 223 | + * @return string |
|
| 223 | 224 | */ |
| 224 | 225 | private static function extract_text_from_block( $block ) { |
| 225 | 226 | if ( empty( self::$supported_blocks[ $block['name'] ] ) ) { |