@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * @access public |
| 223 | 223 | * |
| 224 | 224 | * @param array $config Full sync configuration for this sync module. |
| 225 | - * @return array Number of items yet to be enqueued. |
|
| 225 | + * @return integer Number of items yet to be enqueued. |
|
| 226 | 226 | */ |
| 227 | 227 | public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 228 | 228 | return 1; |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | * |
| 234 | 234 | * @access public |
| 235 | 235 | * |
| 236 | - * @return array Full sync actions of this module. |
|
| 236 | + * @return string[] Full sync actions of this module. |
|
| 237 | 237 | */ |
| 238 | 238 | public function get_full_sync_actions() { |
| 239 | 239 | return array( 'jetpack_full_sync_callables' ); |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * |
| 159 | 159 | * @param array $config Full sync configuration for this sync module. |
| 160 | 160 | * |
| 161 | - * @return array Number of items yet to be enqueued. |
|
| 161 | + * @return integer Number of items yet to be enqueued. |
|
| 162 | 162 | */ |
| 163 | 163 | public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 164 | 164 | return 1; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @access public |
| 171 | 171 | * |
| 172 | - * @return array Full sync actions of this module. |
|
| 172 | + * @return string[] Full sync actions of this module. |
|
| 173 | 173 | */ |
| 174 | 174 | public function get_full_sync_actions() { |
| 175 | 175 | return array( 'jetpack_full_sync_constants' ); |
@@ -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' ); |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | * Only enqueue block assets when needed. |
| 584 | 584 | * |
| 585 | 585 | * @param string $type Slug of the block. |
| 586 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
| 586 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
| 587 | 587 | * detected script dependencies from the webpack build. |
| 588 | 588 | * |
| 589 | 589 | * @return void |
@@ -837,7 +837,7 @@ discard block |
||
| 837 | 837 | * |
| 838 | 838 | * @param string $slug Block slug. |
| 839 | 839 | * @param array $attr Block attributes. |
| 840 | - * @param array $extra Potential extra classes you may want to provide. |
|
| 840 | + * @param string[] $extra Potential extra classes you may want to provide. |
|
| 841 | 841 | * |
| 842 | 842 | * @return string $classes List of CSS classes for a block. |
| 843 | 843 | */ |
@@ -934,10 +934,10 @@ discard block |
||
| 934 | 934 | * @since 8.3.0 |
| 935 | 935 | * |
| 936 | 936 | * @param string $url URL saved as an attribute in block. |
| 937 | - * @param array $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 937 | + * @param string[] $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 938 | 938 | * @param bool $is_regex Array of regexes matching the URL that could be used in block. |
| 939 | 939 | * |
| 940 | - * @return bool|string |
|
| 940 | + * @return false|string |
|
| 941 | 941 | */ |
| 942 | 942 | public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) { |
| 943 | 943 | if ( |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | * Get the value of a setting. |
| 290 | 290 | * @param string $setting |
| 291 | 291 | * @access public |
| 292 | - * @return mixed |
|
| 292 | + * @return string |
|
| 293 | 293 | * @version 1.0 |
| 294 | 294 | */ |
| 295 | 295 | function get_cfg($setting) { |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | |
| 359 | 359 | /** |
| 360 | 360 | * Adds a token to $this->tokens |
| 361 | - * @param mixed $type |
|
| 361 | + * @param integer $type |
|
| 362 | 362 | * @param string $data |
| 363 | 363 | * @param bool $do add a token even if preserve_css is off |
| 364 | 364 | * @access private |
@@ -1189,6 +1189,7 @@ discard block |
||
| 1189 | 1189 | * format("abc, def, ghi") => format("abc, def, ghi") |
| 1190 | 1190 | * |
| 1191 | 1191 | * @param string |
| 1192 | + * @param string $value |
|
| 1192 | 1193 | * @return array |
| 1193 | 1194 | */ |
| 1194 | 1195 | |
@@ -1404,7 +1404,7 @@ |
||
| 1404 | 1404 | /** |
| 1405 | 1405 | * Migration routine for moving safecss from wp_options to wp_posts to support revisions |
| 1406 | 1406 | * |
| 1407 | - * @return void |
|
| 1407 | + * @return false|null |
|
| 1408 | 1408 | */ |
| 1409 | 1409 | static function upgrade() { |
| 1410 | 1410 | $css = get_option( 'safecss' ); |
@@ -36,6 +36,9 @@ |
||
| 36 | 36 | add_action( 'init', array( &$this, 'action_init' ) ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $file |
|
| 41 | + */ |
|
| 39 | 42 | function wpcom_static_url($file) { |
| 40 | 43 | $i = hexdec( substr( md5( $file ), -1 ) ) % 2; |
| 41 | 44 | return 'https://s' . $i . '.wp.com' . $file; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * Convenience function for grabbing options from params->options |
| 119 | 119 | * |
| 120 | 120 | * @param string $option the option to grab. |
| 121 | - * @param mixed $default (optional). |
|
| 121 | + * @param boolean $default (optional). |
|
| 122 | 122 | * @return option or $default if not set |
| 123 | 123 | * |
| 124 | 124 | * @since 4.5.0 |
@@ -710,7 +710,7 @@ discard block |
||
| 710 | 710 | /** |
| 711 | 711 | * Check the reasons to bail before we attempt to insert ads. |
| 712 | 712 | * |
| 713 | - * @return true if we should bail (don't insert ads) |
|
| 713 | + * @return boolean if we should bail (don't insert ads) |
|
| 714 | 714 | * |
| 715 | 715 | * @since 4.5.0 |
| 716 | 716 | */ |
@@ -382,7 +382,7 @@ |
||
| 382 | 382 | * |
| 383 | 383 | * @param array $query_args The query args of the URL. |
| 384 | 384 | * |
| 385 | - * @return array The width and height of the shortcode. |
|
| 385 | + * @return integer[] The width and height of the shortcode. |
|
| 386 | 386 | */ |
| 387 | 387 | function jetpack_shortcode_youtube_dimensions( $query_args ) { |
| 388 | 388 | global $content_width; |