Completed
Push — try/full-sync-send-immediately ( 78dddb...1aca79 )
by
unknown
08:25
created
packages/sync/src/modules/class-full-sync.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -539,7 +539,7 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
packages/sync/src/modules/class-term-relationships.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 	 *
125 125
 	 * @access public
126 126
 	 *
127
-	 * @return array Full sync actions of this module.
127
+	 * @return string[] Full sync actions of this module.
128 128
 	 */
129 129
 	public function get_full_sync_actions() {
130 130
 		return array( 'jetpack_full_sync_term_relationships' );
Please login to merge, or discard this patch.
packages/sync/src/modules/class-themes.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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' );
Please login to merge, or discard this patch.
packages/tracking/legacy/class-jetpack-tracks-client.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
modules/shortcodes/vimeo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
packages/sync/src/class-listener.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
packages/sync/src/modules/class-comments.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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' );
Please login to merge, or discard this patch.
packages/sync/src/modules/class-module.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
packages/sync/src/modules/class-posts.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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' );
Please login to merge, or discard this patch.