@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * Return a hosting provider using a set of known constants. |
183 | 183 | * |
184 | - * @return mixed A host identifier string or false. |
|
184 | + * @return string|false A host identifier string or false. |
|
185 | 185 | */ |
186 | 186 | public function get_hosting_provider_by_known_constant() { |
187 | 187 | $hosting_provider_constants = array( |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Return a hosting provider using a set of known classes. |
211 | 211 | * |
212 | - * @return mixed A host identifier string or false. |
|
212 | + * @return string|false A host identifier string or false. |
|
213 | 213 | */ |
214 | 214 | public function get_hosting_provider_by_known_class() { |
215 | 215 | $hosting_provider = false; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Return a hosting provider using a set of known functions. |
228 | 228 | * |
229 | - * @return mixed A host identifier string or false. |
|
229 | + * @return string|false A host identifier string or false. |
|
230 | 230 | */ |
231 | 231 | public function get_hosting_provider_by_known_function() { |
232 | 232 | $hosting_provider = false; |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | * |
442 | 442 | * @param string $option Option value from the site. |
443 | 443 | * @param callable $url_function Function retrieving the URL to normalize. |
444 | - * @return mixed|string URL. |
|
444 | + * @return callable URL. |
|
445 | 445 | */ |
446 | 446 | public static function normalize_www_in_url( $option, $url_function ) { |
447 | 447 | $url = wp_parse_url( call_user_func( $url_function ) ); |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | * Only enqueue block assets when needed. |
463 | 463 | * |
464 | 464 | * @param string $type Slug of the block. |
465 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
465 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
466 | 466 | * detected script dependencies from the webpack build. |
467 | 467 | * |
468 | 468 | * @return void |
@@ -836,6 +836,9 @@ discard block |
||
836 | 836 | return Jetpack_Plan::supports( BLOCK_NAME ); |
837 | 837 | } |
838 | 838 | |
839 | + /** |
|
840 | + * @param string $callback |
|
841 | + */ |
|
839 | 842 | public static function register_block_with_availability( $block_name, $callback, $availability ) { |
840 | 843 | $availability_check_result = self::is_block_available( $block_name, $availability ); |
841 | 844 | if ( is_bool( $availability_check_result ) && $availability_check_result ) { |