Completed
Push — update/build-sort-by-deps ( e2d820...b39fe2 )
by
unknown
58:05 queued 47:05
created
projects/plugins/jetpack/modules/shortcodes/youtube.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@
 block discarded – undo
382 382
  *
383 383
  * @param array $query_args The query args of the URL.
384 384
  *
385
- * @return array The width and height of the shortcode.
385
+ * @return integer[] The width and height of the shortcode.
386 386
  */
387 387
 function jetpack_shortcode_youtube_dimensions( $query_args ) {
388 388
 	global $content_width;
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/sitemaps/sitemap-buffer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
263 263
 	 * @param DOMElement  $parent (optional) an element to which new children should be added.
264 264
 	 * @param DOMDocument $root (optional) the parent document.
265 265
 	 *
266
-	 * @return string|DOMDocument The rendered XML string or an object if root element is specified.
266
+	 * @return null|DOMNode The rendered XML string or an object if root element is specified.
267 267
 	 */
268 268
 	protected function array_to_xml_string( $array, $parent = null, $root = null ) {
269 269
 		$return_string = false;
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,10 +177,10 @@
 block discarded – undo
177 177
 	 * @since 4.3.0
178 178
 	 * @since 4.6.0 Added public-api.wordpress.com as an allowed redirect
179 179
 	 *
180
-	 * @param array $hosts
180
+	 * @param string[] $hosts
181 181
 	 * @param string $api_base
182 182
 	 *
183
-	 * @return array
183
+	 * @return string[]
184 184
 	 */
185 185
 	static function allowed_redirect_hosts( $hosts, $api_base = JETPACK__API_BASE ) {
186 186
 		if ( empty( $hosts ) ) {
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/videopress/utility-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
  *
309 309
  * @since 4.4
310 310
  * @param string $title
311
- * @return int|WP_Error
311
+ * @return string
312 312
  */
313 313
 function videopress_create_new_media_item( $title, $guid = null ) {
314 314
 	$post = array(
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-site-jetpack.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -165,6 +165,9 @@  discard block
 block discarded – undo
165 165
 		return $this->get_atomic_cloud_site_option( 'launch-status' );
166 166
 	}
167 167
 
168
+	/**
169
+	 * @param string $option
170
+	 */
168 171
 	function get_atomic_cloud_site_option( $option ) {
169 172
 		if ( ! jetpack_is_atomic_site() ) {
170 173
 			return false;
@@ -247,6 +250,9 @@  discard block
 block discarded – undo
247 250
 		return false;
248 251
 	}
249 252
 
253
+	/**
254
+	 * @param string $role
255
+	 */
250 256
 	function current_user_can( $role ) {
251 257
 		return current_user_can( $role );
252 258
 	}
@@ -306,6 +312,7 @@  discard block
 block discarded – undo
306 312
 
307 313
 	/**
308 314
 	 * Post functions
315
+	 * @param string $context
309 316
 	 */
310 317
 
311 318
 	function wrap_post( $post, $context ) {
Please login to merge, or discard this patch.
wpcom-endpoints/test-class-wpcom-rest-api-v2-endpoint-external-media.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@
 block discarded – undo
383 383
 	 * @param string $filename File name.
384 384
 	 * @param string $dir      Temp directory. Dafault empty.
385 385
 	 *
386
-	 * @return string|string[]|null
386
+	 * @return string
387 387
 	 */
388 388
 	public function get_temp_name( $filename, $dir = '' ) {
389 389
 		if ( empty( $dir ) ) {
Please login to merge, or discard this patch.
jetpack/tests/php/json-api/test-class.json-api-plugins-endpoints.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -161,6 +161,9 @@
 block discarded – undo
161 161
 		return 'direct';
162 162
 	}
163 163
 
164
+	/**
165
+	 * @param string $dir
166
+	 */
164 167
 	function rmdir( $dir ) {
165 168
 		foreach ( scandir( $dir ) as $file ) {
166 169
 			if ( is_dir( $file ) )
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/media/test-class.jetpack-media-extractor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -199,6 +199,9 @@
 block discarded – undo
199 199
 		$this->assertEquals( $image_list, $images_extracted );
200 200
 	}
201 201
 
202
+	/**
203
+	 * @return integer
204
+	 */
202 205
 	private function add_test_post() {
203 206
 		$post_id = $this->factory->post->create( array(
204 207
 			'post_author' => '1046316',
Please login to merge, or discard this patch.
projects/plugins/jetpack/tests/php/media/test-class.jetpack-post-images.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@
 block discarded – undo
410 410
 	 *
411 411
 	 * @since 9.1.0
412 412
 	 *
413
-	 * @param array $story_media A representative array of the media in the story. Each is one of 'image', 'video', or 'videopress'.
413
+	 * @param string[] $story_media A representative array of the media in the story. Each is one of 'image', 'video', or 'videopress'.
414 414
 	 * @param bool  $wpcom_mode  If true, handles VideoPress videos the way WP.com does. Defaults to false.
415 415
 	 * @return array $post_info {
416 416
 	 * An array of information about our post.
Please login to merge, or discard this patch.