@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @param string $cron_name |
| 87 | 87 | * |
| 88 | - * @return bool |
|
| 88 | + * @return false|null |
|
| 89 | 89 | */ |
| 90 | 90 | public function activate_cron( $cron_name ) { |
| 91 | 91 | |
@@ -699,8 +699,7 @@ discard block |
||
| 699 | 699 | * Render the events |
| 700 | 700 | * |
| 701 | 701 | * @param string $url (default: '') |
| 702 | - * @param string $context (default: 'widget') or 'shortcode' |
|
| 703 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
| 702 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
| 704 | 703 | */ |
| 705 | 704 | public function render( $url = '', $args = array() ) { |
| 706 | 705 | |
@@ -857,8 +856,7 @@ discard block |
||
| 857 | 856 | * Wrapper function for iCalendarReader->render() |
| 858 | 857 | * |
| 859 | 858 | * @param string $url (default: '') |
| 860 | - * @param string $context (default: 'widget') or 'shortcode' |
|
| 861 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
| 859 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
| 862 | 860 | */ |
| 863 | 861 | function icalendar_render_events( $url = '', $args = array() ) { |
| 864 | 862 | $ical = new iCalendarReader(); |
@@ -107,7 +107,6 @@ |
||
| 107 | 107 | /** |
| 108 | 108 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
| 109 | 109 | * |
| 110 | - * @param mixed $identity username, user_id, or WP_user object |
|
| 111 | 110 | * @param string $event_name The name of the event |
| 112 | 111 | * @param array $properties Custom properties to send with the event |
| 113 | 112 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -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' ); |
@@ -381,8 +381,8 @@ |
||
| 381 | 381 | * |
| 382 | 382 | * @param $width int Width of the image |
| 383 | 383 | * @param $height int Height of the image |
| 384 | -* @param $req_width int Required width to pass validation |
|
| 385 | -* @param $req_height int Required height to pass validation |
|
| 384 | +* @param integer $req_width int Required width to pass validation |
|
| 385 | +* @param integer $req_height int Required height to pass validation |
|
| 386 | 386 | * @return bool - True if the image passed the required size validation |
| 387 | 387 | */ |
| 388 | 388 | function _jetpack_og_get_image_validate_size($width, $height, $req_width, $req_height) { |
@@ -52,6 +52,9 @@ discard block |
||
| 52 | 52 | return (double) get_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, 0 ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param integer $time |
|
| 57 | + */ |
|
| 55 | 58 | public function set_next_sync_time( $time, $queue_name ) { |
| 56 | 59 | return update_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, $time, true ); |
| 57 | 60 | } |
@@ -64,6 +67,9 @@ discard block |
||
| 64 | 67 | return $this->do_sync_and_set_delays( $this->sync_queue ); |
| 65 | 68 | } |
| 66 | 69 | |
| 70 | + /** |
|
| 71 | + * @param Jetpack_Sync_Queue $queue |
|
| 72 | + */ |
|
| 67 | 73 | public function do_sync_and_set_delays( $queue ) { |
| 68 | 74 | // don't sync if importing |
| 69 | 75 | if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { |
@@ -293,6 +299,10 @@ discard block |
||
| 293 | 299 | } |
| 294 | 300 | |
| 295 | 301 | // in seconds |
| 302 | + |
|
| 303 | + /** |
|
| 304 | + * @param double $seconds |
|
| 305 | + */ |
|
| 296 | 306 | function set_max_dequeue_time( $seconds ) { |
| 297 | 307 | $this->max_dequeue_time = $seconds; |
| 298 | 308 | } |
@@ -420,6 +420,10 @@ discard block |
||
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | // functions |
| 423 | + |
|
| 424 | + /** |
|
| 425 | + * @param string $name |
|
| 426 | + */ |
|
| 423 | 427 | public function get_callable( $name ) { |
| 424 | 428 | $value = get_option( 'jetpack_' . $name ); |
| 425 | 429 | |
@@ -688,6 +692,9 @@ discard block |
||
| 688 | 692 | return $histogram; |
| 689 | 693 | } |
| 690 | 694 | |
| 695 | + /** |
|
| 696 | + * @param string|null $id_column |
|
| 697 | + */ |
|
| 691 | 698 | private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true ) { |
| 692 | 699 | global $wpdb; |
| 693 | 700 | |
@@ -725,6 +732,9 @@ discard block |
||
| 725 | 732 | |
| 726 | 733 | } |
| 727 | 734 | |
| 735 | + /** |
|
| 736 | + * @param string $where_sql |
|
| 737 | + */ |
|
| 728 | 738 | private function meta_count( $table, $where_sql, $min_id, $max_id ) { |
| 729 | 739 | global $wpdb; |
| 730 | 740 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * |
| 177 | 177 | * @since 4.3.0 |
| 178 | 178 | * |
| 179 | - * @return array Array of Jetpack modules. |
|
| 179 | + * @return string Array of Jetpack modules. |
|
| 180 | 180 | */ |
| 181 | 181 | public function get_modules() { |
| 182 | 182 | require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); |
@@ -1104,7 +1104,6 @@ discard block |
||
| 1104 | 1104 | * |
| 1105 | 1105 | * @since 4.3.0 |
| 1106 | 1106 | * |
| 1107 | - * @param WP_REST_Request $request |
|
| 1108 | 1107 | * |
| 1109 | 1108 | * @return bool does a current user have enough privileges. |
| 1110 | 1109 | */ |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * |
| 17 | 17 | * @param string $type The type of option to return. Defaults to 'compact'. |
| 18 | 18 | * |
| 19 | - * @return array |
|
| 19 | + * @return string[] |
|
| 20 | 20 | */ |
| 21 | 21 | public static function get_option_names( $type = 'compact' ) { |
| 22 | 22 | switch ( $type ) { |
@@ -163,6 +163,9 @@ discard block |
||
| 163 | 163 | return $value; |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | + /** |
|
| 167 | + * @param string $name |
|
| 168 | + */ |
|
| 166 | 169 | private static function update_grouped_option( $group, $name, $value ) { |
| 167 | 170 | $options = get_option( self::$grouped_options[ $group ] ); |
| 168 | 171 | if ( ! is_array( $options ) ) { |
@@ -257,6 +260,9 @@ discard block |
||
| 257 | 260 | return $result; |
| 258 | 261 | } |
| 259 | 262 | |
| 263 | + /** |
|
| 264 | + * @param string $name |
|
| 265 | + */ |
|
| 260 | 266 | private static function get_grouped_option( $group, $name, $default ) { |
| 261 | 267 | $options = get_option( self::$grouped_options[ $group ] ); |
| 262 | 268 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |