Completed
Push — dna-wp-replicastore ( 5ba3d9...70bb0d )
by
unknown
322:11 queued 313:37
created
packages/status/tests/php/test_Status.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,7 +143,6 @@  discard block
 block discarded – undo
143 143
 	/**
144 144
 	 * Mock a set of filters.
145 145
 	 *
146
-	 * @param array $args Array of filters with their arguments.
147 146
 	 * @return phpmock\Mock The mock object.
148 147
 	 */
149 148
 	protected function mock_filters( $filters = array() ) {
@@ -153,8 +152,7 @@  discard block
 block discarded – undo
153 152
 	/**
154 153
 	 * Mock a set of constants.
155 154
 	 *
156
-	 * @param array $args Array of sets with constants and their respective values.
157
-	 * @return phpmock\Mock The mock object.
155
+	 * @return phpmock\Mock[] The mock object.
158 156
 	 */
159 157
 	protected function mock_constants( $constants = array() ) {
160 158
 		$prepare_constant = function( $constant ) {
@@ -171,7 +169,7 @@  discard block
 block discarded – undo
171 169
 	 * Mock a global function and make it return a certain value.
172 170
 	 *
173 171
 	 * @param string $function_name Name of the function.
174
-	 * @param mixed  $return_value  Return value of the function.
172
+	 * @param string  $return_value  Return value of the function.
175 173
 	 * @return phpmock\Mock The mock object.
176 174
 	 */
177 175
 	protected function mock_function( $function_name, $return_value = null ) {
Please login to merge, or discard this patch.
_inc/lib/plugins.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -95,6 +95,9 @@
 block discarded – undo
95 95
 		return (array) $upgrader->skin->get_upgrade_messages();
96 96
 	}
97 97
 
98
+	 /**
99
+	  * @param string $plugin_slug
100
+	  */
98 101
 	 protected static function generate_wordpress_org_plugin_download_link( $plugin_slug ) {
99 102
 		return "https://downloads.wordpress.org/plugin/$plugin_slug.latest-stable.zip";
100 103
 	 }
Please login to merge, or discard this patch.
packages/connection/tests/php/Manager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 	 * Mock a global function and make it return a certain value.
116 116
 	 *
117 117
 	 * @param string $function_name Name of the function.
118
-	 * @param mixed  $return_value  Return value of the function.
118
+	 * @param integer  $return_value  Return value of the function.
119 119
 	 * @return phpmock\Mock The mock object.
120 120
 	 */
121 121
 	protected function mock_function( $function_name, $return_value = null ) {
Please login to merge, or discard this patch.
packages/sync/src/modules/Callables.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -171,6 +171,9 @@
 block discarded – undo
171 171
 		update_option( 'jetpack_plugin_api_action_links', $plugins_action_links );
172 172
 	}
173 173
 
174
+	/**
175
+	 * @param integer $checksum
176
+	 */
174 177
 	public function should_send_callable( $callable_checksums, $name, $checksum ) {
175 178
 		$idc_override_callables = array(
176 179
 			'main_network_site',
Please login to merge, or discard this patch.
packages/connection/src/Manager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 * Is the user the connection owner.
107 107
 	 *
108 108
 	 * @param Integer $user_id the user identifier.
109
-	 * @return Boolean is the user the connection owner?
109
+	 * @return integer is the user the connection owner?
110 110
 	 */
111 111
 	public function is_connection_owner( $user_id ) {
112 112
 		return $user_id;
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
 	 *
571 571
 	 * @param int|false    $user_id   false: Return the Blog Token. int: Return that user's User Token.
572 572
 	 * @param string|false $token_key If provided, check that the token matches the provided input.
573
-	 * @param bool|true    $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found.
573
+	 * @param boolean    $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found.
574 574
 	 *
575 575
 	 * @return object|false
576 576
 	 */
Please login to merge, or discard this patch.
packages/sync/src/modules/Users.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@
 block discarded – undo
99 99
 		return $user;
100 100
 	}
101 101
 
102
+	/**
103
+	 * @param \WP_User|null $user
104
+	 */
102 105
 	public function expand_user( $user ) {
103 106
 		if ( ! is_object( $user ) ) {
104 107
 			return null;
Please login to merge, or discard this patch.
packages/sync/src/modules/Full_Sync.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@  discard block
 block discarded – undo
194 194
 		do_action( 'jetpack_full_sync_end', '', $range );
195 195
 	}
196 196
 
197
+	/**
198
+	 * @param string $type
199
+	 */
197 200
 	function get_range( $type ) {
198 201
 		global $wpdb;
199 202
 		if ( ! in_array( $type, array( 'comments', 'posts' ) ) ) {
@@ -404,6 +407,9 @@  discard block
 block discarded – undo
404 407
 		$listener->get_full_sync_queue()->reset();
405 408
 	}
406 409
 
410
+	/**
411
+	 * @param integer $default
412
+	 */
407 413
 	private function get_status_option( $name, $default = null ) {
408 414
 		$value = \Jetpack_Options::get_raw_option( self::STATUS_OPTION_PREFIX . "_$name", $default );
409 415
 
Please login to merge, or discard this patch.
packages/sync/src/Listener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -178,6 +178,9 @@
 block discarded – undo
178 178
 		$queue->add_all( $data_to_enqueue );
179 179
 	}
180 180
 
181
+	/**
182
+	 * @param Queue $queue
183
+	 */
181 184
 	function enqueue_action( $current_filter, $args, $queue ) {
182 185
 		// don't enqueue an action during the outbound http request - this prevents recursion
183 186
 		if ( \Jetpack_Sync_Settings::is_sending() ) {
Please login to merge, or discard this patch.
packages/sync/legacy/class.jetpack-sync-settings.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@  discard block
 block discarded – undo
166 166
 		self::set_is_sending( null );
167 167
 	}
168 168
 
169
+	/**
170
+	 * @param null|boolean $is_importing
171
+	 */
169 172
 	static function set_importing( $is_importing ) {
170 173
 		// set to NULL to revert to WP_IMPORTING, the standard behavior
171 174
 		self::$is_importing = $is_importing;
@@ -200,6 +203,9 @@  discard block
 block discarded – undo
200 203
 		return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST );
201 204
 	}
202 205
 
206
+	/**
207
+	 * @param boolean|null $is_syncing
208
+	 */
203 209
 	static function set_is_syncing( $is_syncing ) {
204 210
 		self::$is_syncing = $is_syncing;
205 211
 	}
@@ -208,6 +214,9 @@  discard block
 block discarded – undo
208 214
 		return (bool) self::$is_sending;
209 215
 	}
210 216
 
217
+	/**
218
+	 * @param null|boolean $is_sending
219
+	 */
211 220
 	static function set_is_sending( $is_sending ) {
212 221
 		self::$is_sending = $is_sending;
213 222
 	}
Please login to merge, or discard this patch.