@@ -539,7 +539,7 @@ |
||
| 539 | 539 | * @access private |
| 540 | 540 | * |
| 541 | 541 | * @param string $name Name of the option. |
| 542 | - * @param mixed $default Default value of the option. |
|
| 542 | + * @param integer $default Default value of the option. |
|
| 543 | 543 | * @return mixed Option value. |
| 544 | 544 | */ |
| 545 | 545 | private function get_status_option( $name, $default = null ) { |
@@ -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' ); |
@@ -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 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * @param array $attr The attributes of the shortcode. |
| 45 | 45 | * @param array $old_attr Optional array of attributes from the old shortcode format. |
| 46 | 46 | * |
| 47 | - * @return array Width and height. |
|
| 47 | + * @return integer[] Width and height. |
|
| 48 | 48 | */ |
| 49 | 49 | function jetpack_shortcode_get_vimeo_dimensions( $attr, $old_attr = array() ) { |
| 50 | 50 | global $content_width; |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | * Prevent adding items to the queue if it hasn't sent an item for 15 mins |
| 159 | 159 | * AND the queue is over 1000 items long (by default). |
| 160 | 160 | * |
| 161 | - * @param object $queue Sync queue. |
|
| 161 | + * @param string $queue Sync queue. |
|
| 162 | 162 | * @return bool |
| 163 | 163 | */ |
| 164 | 164 | public function can_add_to_queue( $queue ) { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | * @param int $send_until Maximum duration of processing. |
| 245 | 245 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
| 246 | 246 | * |
| 247 | - * @return array Number of actions enqueued, and next module state. |
|
| 247 | + * @return boolean Number of actions enqueued, and next module state. |
|
| 248 | 248 | */ |
| 249 | 249 | public function send_full_sync_actions( $config, $send_until, $state ) { |
| 250 | 250 | global $wpdb; |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | * |
| 298 | 298 | * @access public |
| 299 | 299 | * |
| 300 | - * @return array Full sync actions of this module. |
|
| 300 | + * @return string[] Full sync actions of this module. |
|
| 301 | 301 | */ |
| 302 | 302 | public function get_full_sync_actions() { |
| 303 | 303 | return array( 'jetpack_full_sync_comments' ); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @param string $object_type Type of the sync object. |
| 69 | 69 | * @param int $id ID of the sync object. |
| 70 | - * @return mixed Object, or false if the object is invalid. |
|
| 70 | + * @return boolean Object, or false if the object is invalid. |
|
| 71 | 71 | */ |
| 72 | 72 | public function get_object_by_id( $object_type, $id ) { |
| 73 | 73 | return false; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @param float $send_until timestamp until we want this request to send full sync events. |
| 144 | 144 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
| 145 | 145 | * |
| 146 | - * @return array Number of actions sent, and next module state. |
|
| 146 | + * @return integer[] Number of actions sent, and next module state. |
|
| 147 | 147 | */ |
| 148 | 148 | public function send_full_sync_actions( $config, $send_until, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 149 | 149 | // In subclasses, return the number of actions sent, and next module state (true == done). |
@@ -182,8 +182,8 @@ discard block |
||
| 182 | 182 | * @access protected |
| 183 | 183 | * |
| 184 | 184 | * @param array $action_names Action names we're interested in. |
| 185 | - * @param array $actions_to_count Unfiltered list of actions we want to count. |
|
| 186 | - * @return array Number of actions that we're interested in. |
|
| 185 | + * @param string[] $actions_to_count Unfiltered list of actions we want to count. |
|
| 186 | + * @return integer Number of actions that we're interested in. |
|
| 187 | 187 | */ |
| 188 | 188 | protected function count_actions( $action_names, $actions_to_count ) { |
| 189 | 189 | return count( array_intersect( $action_names, $actions_to_count ) ); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | * @param float $send_until timestamp until we want this request to send full sync events. |
| 292 | 292 | * @param boolean $status the current module full sync status. |
| 293 | 293 | * |
| 294 | - * @return array Status, the module full sync status updated. |
|
| 294 | + * @return boolean Status, the module full sync status updated. |
|
| 295 | 295 | */ |
| 296 | 296 | protected function send_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql, $send_until, $status ) { |
| 297 | 297 | global $wpdb; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * @param int $send_until Maximum duration of processing. |
| 215 | 215 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
| 216 | 216 | * |
| 217 | - * @return array Number of actions enqueued, and next module state. |
|
| 217 | + * @return boolean Number of actions enqueued, and next module state. |
|
| 218 | 218 | */ |
| 219 | 219 | public function send_full_sync_actions( $config, $send_until, $state ) { |
| 220 | 220 | global $wpdb; |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * @todo Use $wpdb->prepare for the SQL query. |
| 231 | 231 | * |
| 232 | 232 | * @param array $config Full sync configuration for this sync module. |
| 233 | - * @return array Number of items yet to be enqueued. |
|
| 233 | + * @return integer Number of items yet to be enqueued. |
|
| 234 | 234 | */ |
| 235 | 235 | public function estimate_full_sync_actions( $config ) { |
| 236 | 236 | global $wpdb; |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | * |
| 267 | 267 | * @access public |
| 268 | 268 | * |
| 269 | - * @return array Full sync actions of this module. |
|
| 269 | + * @return string[] Full sync actions of this module. |
|
| 270 | 270 | */ |
| 271 | 271 | public function get_full_sync_actions() { |
| 272 | 272 | return array( 'jetpack_full_sync_posts' ); |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * @param int $send_until Maximum duration of processing. |
| 148 | 148 | * @param boolean $status Full sync status for this module. |
| 149 | 149 | * |
| 150 | - * @return array Full sync status for this module. |
|
| 150 | + * @return boolean Full sync status for this module. |
|
| 151 | 151 | */ |
| 152 | 152 | public function send_full_sync_actions( $config, $send_until, $status ) { |
| 153 | 153 | global $wpdb; |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * |
| 227 | 227 | * @access public |
| 228 | 228 | * |
| 229 | - * @return array Full sync actions of this module. |
|
| 229 | + * @return string[] Full sync actions of this module. |
|
| 230 | 230 | */ |
| 231 | 231 | public function get_full_sync_actions() { |
| 232 | 232 | return array( 'jetpack_full_sync_term_relationships' ); |