Completed
Push — fix/nav-unification-my-sites ( 542eb5...90915e )
by
unknown
10:08
created
projects/plugins/jetpack/class.photon.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	/**
43 43
 	 * Singleton implementation
44 44
 	 *
45
-	 * @return object
45
+	 * @return Jetpack_Photon|null
46 46
 	 */
47 47
 	public static function instance() {
48 48
 		if ( ! is_a( self::$instance, 'Jetpack_Photon' ) ) {
@@ -1382,7 +1382,7 @@  discard block
 block discarded – undo
1382 1382
 	 * after ourselves without breaking anyone else's filters.
1383 1383
 	 *
1384 1384
 	 * @internal
1385
-	 * @return true
1385
+	 * @return boolean
1386 1386
 	 */
1387 1387
 	public function override_image_downsize_in_rest_edit_context() {
1388 1388
 		return true;
Please login to merge, or discard this patch.
plugins/jetpack/extensions/blocks/podcast-player/podcast-player.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
  * @param string $name           Template name, available in `./templates` folder.
236 236
  * @param array  $template_props Template properties. Optional.
237 237
  * @param bool   $print          Render template. True as default.
238
- * @return false|string          HTML markup or false.
238
+ * @return string|null          HTML markup or false.
239 239
  */
240 240
 function render( $name, $template_props = array(), $print = true ) {
241 241
 	if ( ! strpos( $name, '.php' ) ) {
Please login to merge, or discard this patch.
projects/plugins/jetpack/extensions/blocks/story/story.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
  * Render a slide
218 218
  *
219 219
  * @param array $media  Media information.
220
- * @param array $index  Index of the slide, first slide will be displayed by default, others hidden.
220
+ * @param integer $index  Index of the slide, first slide will be displayed by default, others hidden.
221 221
  *
222 222
  * @return string
223 223
  */
Please login to merge, or discard this patch.
projects/plugins/jetpack/functions.photon.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@
 block discarded – undo
326 326
  *
327 327
  * @param string  $url The URL to parse.
328 328
  * @param integer $component Retrieve specific URL component.
329
- * @return mixed Result of parse_url
329
+ * @return string|false Result of parse_url
330 330
  */
331 331
 function jetpack_photon_parse_url( $url, $component = -1 ) {
332 332
 	_deprecated_function( 'jetpack_photon_parse_url', 'jetpack-7.8.0', 'wp_parse_url' );
Please login to merge, or discard this patch.
jetpack/json-endpoints/class.wpcom-json-api-edit-media-v1-2-endpoint.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 * Update the media post grabbing the post values from
102 102
 	 * the `attrs` parameter
103 103
 	 *
104
-	 * @param  {Number} $media_id - post media ID
104
+	 * @param  integer $media_id - post media ID
105 105
 	 * @param  {Object} $attrs - `attrs` parameter sent from the client in the request body
106 106
 	 * @return
107 107
 	 */
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	 * Save the given temporal file in a local folder.
203 203
 	 *
204 204
 	 * @param  {Array} $file_array
205
-	 * @param  {Number} $media_id
205
+	 * @param  integer $media_id
206 206
 	 * @return {Array|WP_Error} An array with information about the new file saved or a WP_Error is something went wrong.
207 207
 	 */
208 208
 	private function save_temporary_file( $file_array, $media_id ) {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	/**
278 278
 	 * Get the image from a remote url and then save it locally.
279 279
 	 *
280
-	 * @param  {Number} $media_id - media post ID
280
+	 * @param  integer $media_id - media post ID
281 281
 	 * @param  {String} $url - image URL to save locally
282 282
 	 * @return {Array|WP_Error} An array with information about the new file saved or a WP_Error is something went wrong.
283 283
 	 */
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-list-post-type-taxonomies-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@
 block discarded – undo
75 75
 		);
76 76
 	}
77 77
 
78
+	/**
79
+	 * @param string $post_type
80
+	 */
78 81
 	protected function localize_initial_taxonomies( $post_type ) {
79 82
 		/** This filter is documented in jetpack/json-endpoints/class.wpcom-json-api-list-post-types-endpoint.php */
80 83
 		if ( ! apply_filters( 'rest_api_localize_response', false ) ) {
Please login to merge, or discard this patch.
jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -433,6 +433,9 @@
 block discarded – undo
433 433
 		);
434 434
 	}
435 435
 
436
+	/**
437
+	 * @param string $column
438
+	 */
436 439
 	function _build_date_range_query( $column, $range, $where ) {
437 440
 		global $wpdb;
438 441
 
Please login to merge, or discard this patch.
plugins/jetpack/json-endpoints/class.wpcom-json-api-list-terms-endpoint.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -69,11 +69,17 @@
 block discarded – undo
69 69
 		return $args;
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $taxonomy
74
+	 */
72 75
 	function get_found( $taxonomy, $args ) {
73 76
 		unset( $args['offset'] );
74 77
 		return wp_count_terms( $taxonomy, $args );
75 78
 	}
76 79
 
80
+	/**
81
+	 * @param string $taxonomy
82
+	 */
77 83
 	function get_formatted_terms( $taxonomy, $args ) {
78 84
 		$terms = get_terms( $taxonomy, $args );
79 85
 
Please login to merge, or discard this patch.
plugins/jetpack/json-endpoints/class.wpcom-json-api-menus-v1-1-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -297,6 +297,7 @@  discard block
 block discarded – undo
297 297
 	 * @param array $items item tree
298 298
 	 * @param array &$items_list output flat list of items
299 299
 	 * @param int &$counter for creating temporary IDs
300
+	 * @param integer $counter
300 301
 	 */
301 302
 	protected function untreeify_items( $items, &$items_list, &$counter ) {
302 303
 		foreach( $items as $index => $item ) {
@@ -546,6 +547,7 @@  discard block
 block discarded – undo
546 547
 	 * This function will create items that have a 'tmp_id' set, and
547 548
 	 * update any items with a 'tmp_parent' to use the
548 549
 	 * newly created item as a parent.
550
+	 * @param integer $menu_id
549 551
 	 */
550 552
 	function create_new_items( $data, $menu_id ) {
551 553
 		$tmp_to_actual_ids = array();
@@ -571,6 +573,7 @@  discard block
 block discarded – undo
571 573
 	/**
572 574
 	 * remove any existing menu items not present in the supplied array.
573 575
 	 * returns wp_error if an item cannot be deleted.
576
+	 * @param integer $menu_id
574 577
 	 */
575 578
 	function delete_items_not_present( $menu_id, $menu_items ) {
576 579
 
Please login to merge, or discard this patch.