@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @param string $type The type of option to return. Defaults to 'compact'. |
29 | 29 | * |
30 | - * @return array |
|
30 | + * @return string[] |
|
31 | 31 | */ |
32 | 32 | public static function get_option_names( $type = 'compact' ) { |
33 | 33 | switch ( $type ) { |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | * @since 5.4.0 |
506 | 506 | * |
507 | 507 | * @param boolean $strip_unsafe_options If true, and by default, will strip out options necessary for the connection to WordPress.com. |
508 | - * @return array An array of all options managed via the Jetpack_Options class. |
|
508 | + * @return string[] An array of all options managed via the Jetpack_Options class. |
|
509 | 509 | */ |
510 | 510 | public static function get_all_jetpack_options( $strip_unsafe_options = true ) { |
511 | 511 | $jetpack_options = self::get_option_names(); |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | * |
549 | 549 | * @since 5.4.0 |
550 | 550 | * |
551 | - * @return array |
|
551 | + * @return string[] |
|
552 | 552 | */ |
553 | 553 | public static function get_all_wp_options() { |
554 | 554 | // A manual build of the wp options. |
@@ -149,7 +149,7 @@ |
||
149 | 149 | * |
150 | 150 | * @access public |
151 | 151 | * |
152 | - * @return int|null |
|
152 | + * @return null|double |
|
153 | 153 | */ |
154 | 154 | public function get_sync_progress_percentage() { |
155 | 155 | if ( ! $this->is_started() || $this->is_finished() ) { |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | * |
412 | 412 | * @access public |
413 | 413 | * |
414 | - * @return int|null |
|
414 | + * @return null|double |
|
415 | 415 | */ |
416 | 416 | public function get_sync_progress_percentage() { |
417 | 417 | if ( ! $this->is_started() || $this->is_finished() ) { |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | * @access private |
626 | 626 | * |
627 | 627 | * @param string $name Name of the option. |
628 | - * @param mixed $default Default value of the option. |
|
628 | + * @param integer $default Default value of the option. |
|
629 | 629 | * @return mixed Option value. |
630 | 630 | */ |
631 | 631 | private function get_status_option( $name, $default = null ) { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Record an event. |
54 | 54 | * |
55 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
55 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
56 | 56 | * Properties are included directly in the pixel query string after light validation. |
57 | 57 | * @return mixed True on success, WP_Error on failure |
58 | 58 | */ |
@@ -1264,7 +1264,6 @@ |
||
1264 | 1264 | * |
1265 | 1265 | * @since 4.3.0 |
1266 | 1266 | * |
1267 | - * @param WP_REST_Request $request The request sent to the WP REST API. |
|
1268 | 1267 | * |
1269 | 1268 | * @return object |
1270 | 1269 | */ |
@@ -129,6 +129,9 @@ discard block |
||
129 | 129 | return apply_filters( 'jp_carousel_load_for_images_linked_to_file', false ); |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $version |
|
134 | + */ |
|
132 | 135 | function asset_version( $version ) { |
133 | 136 | /** |
134 | 137 | * Filter the version string used when enqueuing Carousel assets. |
@@ -511,6 +514,9 @@ discard block |
||
511 | 514 | return $attr; |
512 | 515 | } |
513 | 516 | |
517 | + /** |
|
518 | + * @param string $html |
|
519 | + */ |
|
514 | 520 | function add_data_to_container( $html ) { |
515 | 521 | global $post; |
516 | 522 | if ( |
@@ -757,6 +763,9 @@ discard block |
||
757 | 763 | return ( 1 == $value ) ? 1 : 0; |
758 | 764 | } |
759 | 765 | |
766 | + /** |
|
767 | + * @param string $name |
|
768 | + */ |
|
760 | 769 | function settings_checkbox( $name, $label_text, $extra_text = '', $default_to_checked = true ) { |
761 | 770 | if ( empty( $name ) ) { |
762 | 771 | return; |
@@ -772,6 +781,9 @@ discard block |
||
772 | 781 | echo '</fieldset>'; |
773 | 782 | } |
774 | 783 | |
784 | + /** |
|
785 | + * @param string $name |
|
786 | + */ |
|
775 | 787 | function settings_select( $name, $values, $extra_text = '' ) { |
776 | 788 | if ( empty( $name ) || ! is_array( $values ) || empty( $values ) ) { |
777 | 789 | return; |
@@ -1283,7 +1283,7 @@ |
||
1283 | 1283 | * Returns an array of stock and custom taxonomy query vars |
1284 | 1284 | * |
1285 | 1285 | * @global $wp_taxonomies |
1286 | - * @return array |
|
1286 | + * @return string[] |
|
1287 | 1287 | */ |
1288 | 1288 | function get_taxonomy_vars() { |
1289 | 1289 | global $wp_taxonomies; |
@@ -172,7 +172,7 @@ |
||
172 | 172 | * @param array $post_types - other post types. |
173 | 173 | * |
174 | 174 | * @see hook 'rest_api_allowed_post_types' |
175 | - * @return array |
|
175 | + * @return string[] |
|
176 | 176 | */ |
177 | 177 | public function allow_rest_api_types( $post_types ) { |
178 | 178 | $post_types[] = self::$post_type_plan; |
@@ -388,6 +388,9 @@ discard block |
||
388 | 388 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
389 | 389 | } |
390 | 390 | |
391 | + /** |
|
392 | + * @param string $name |
|
393 | + */ |
|
391 | 394 | public function js_dialog( $name, $params = array() ) { |
392 | 395 | if ( true !== $this->open_link_in_new ) { |
393 | 396 | return; |
@@ -1039,6 +1042,9 @@ discard block |
||
1039 | 1042 | public $icon = '\f204'; |
1040 | 1043 | private $share_type = 'default'; |
1041 | 1044 | |
1045 | + /** |
|
1046 | + * @param string $id |
|
1047 | + */ |
|
1042 | 1048 | public function __construct( $id, array $settings ) { |
1043 | 1049 | parent::__construct( $id, $settings ); |
1044 | 1050 | |
@@ -1186,6 +1192,10 @@ discard block |
||
1186 | 1192 | class Share_Print extends Sharing_Source { |
1187 | 1193 | public $shortname = 'print'; |
1188 | 1194 | public $icon = '\f469'; |
1195 | + |
|
1196 | + /** |
|
1197 | + * @param string $id |
|
1198 | + */ |
|
1189 | 1199 | public function __construct( $id, array $settings ) { |
1190 | 1200 | parent::__construct( $id, $settings ); |
1191 | 1201 | |
@@ -1585,6 +1595,9 @@ discard block |
||
1585 | 1595 | return __( 'Pinterest', 'jetpack' ); |
1586 | 1596 | } |
1587 | 1597 | |
1598 | + /** |
|
1599 | + * @return string |
|
1600 | + */ |
|
1588 | 1601 | public function get_image( $post ) { |
1589 | 1602 | if ( class_exists( 'Jetpack_PostImages' ) ) { |
1590 | 1603 | $image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) ); |
@@ -1724,6 +1737,9 @@ discard block |
||
1724 | 1737 | public $shortname = 'pocket'; |
1725 | 1738 | public $icon = '\f224'; |
1726 | 1739 | |
1740 | + /** |
|
1741 | + * @param string $id |
|
1742 | + */ |
|
1727 | 1743 | public function __construct( $id, array $settings ) { |
1728 | 1744 | parent::__construct( $id, $settings ); |
1729 | 1745 | |
@@ -1839,6 +1855,9 @@ discard block |
||
1839 | 1855 | class Jetpack_Share_WhatsApp extends Sharing_Source { |
1840 | 1856 | public $shortname = 'jetpack-whatsapp'; |
1841 | 1857 | |
1858 | + /** |
|
1859 | + * @param string $id |
|
1860 | + */ |
|
1842 | 1861 | public function __construct( $id, array $settings ) { |
1843 | 1862 | parent::__construct( $id, $settings ); |
1844 | 1863 | } |