Completed
Push — feature/replace-yarn-1-with-pn... ( 6bc43e...87dbb1 )
by
unknown
35:33 queued 25:41
created
projects/plugins/jetpack/sal/class.json-api-post-base.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 	public $context;
17 17
 	public $site;
18 18
 
19
+	/**
20
+	 * @param Jetpack_Site $site
21
+	 */
19 22
 	function __construct( $site, $post, $context ) {
20 23
 		$this->post = $post;
21 24
 		$this->context = $context;
@@ -508,6 +511,9 @@  discard block
 block discarded – undo
508 511
 		return $suggestions;
509 512
 	}
510 513
 
514
+	/**
515
+	 * @param string $context
516
+	 */
511 517
 	private function format_taxonomy( $taxonomy, $taxonomy_type, $context ) {
512 518
 		// Permissions
513 519
 		switch ( $context ) {
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-site-base.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 	public $blog_id;
24 24
 	public $platform;
25 25
 
26
+	/**
27
+	 * @param WPORG_Platform $platform
28
+	 */
26 29
 	public function __construct( $blog_id, $platform ) {
27 30
 		$this->blog_id = $blog_id;
28 31
 		$this->platform = $platform;
Please login to merge, or discard this patch.
projects/plugins/jetpack/sal/class.json-api-site-jetpack-base.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -4,10 +4,20 @@  discard block
 block discarded – undo
4 4
 require_once dirname( __FILE__ ) . '/class.json-api-site-base.php';
5 5
 
6 6
 abstract class Abstract_Jetpack_Site extends SAL_Site {
7
+
8
+	/**
9
+	 * @param string $name
10
+	 */
7 11
 	abstract protected function get_constant( $name );
8 12
 
13
+	/**
14
+	 * @param string $feature_name
15
+	 */
9 16
 	abstract protected function current_theme_supports( $feature_name );
10 17
 
18
+	/**
19
+	 * @param string $feature_name
20
+	 */
11 21
 	abstract protected function get_theme_support( $feature_name );
12 22
 
13 23
 	abstract protected function get_mock_option( $name );
@@ -16,6 +26,9 @@  discard block
 block discarded – undo
16 26
 
17 27
 	abstract public function get_updates();
18 28
 
29
+	/**
30
+	 * @return string
31
+	 */
19 32
 	abstract protected function main_network_site();
20 33
 
21 34
 	abstract protected function wp_version();
Please login to merge, or discard this patch.
projects/plugins/jetpack/modules/sharedaddy/sharing-sources.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -388,6 +388,9 @@  discard block
 block discarded – undo
388 388
 		do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) );
389 389
 	}
390 390
 
391
+	/**
392
+	 * @param string $name
393
+	 */
391 394
 	public function js_dialog( $name, $params = array() ) {
392 395
 		if ( true !== $this->open_link_in_new ) {
393 396
 			return;
@@ -1039,6 +1042,9 @@  discard block
 block discarded – undo
1039 1042
 	public $icon = '\f204';
1040 1043
 	private $share_type = 'default';
1041 1044
 
1045
+	/**
1046
+	 * @param string $id
1047
+	 */
1042 1048
 	public function __construct( $id, array $settings ) {
1043 1049
 		parent::__construct( $id, $settings );
1044 1050
 
@@ -1186,6 +1192,10 @@  discard block
 block discarded – undo
1186 1192
 class Share_Print extends Sharing_Source {
1187 1193
 	public $shortname = 'print';
1188 1194
 	public $icon = '\f469';
1195
+
1196
+	/**
1197
+	 * @param string $id
1198
+	 */
1189 1199
 	public function __construct( $id, array $settings ) {
1190 1200
 		parent::__construct( $id, $settings );
1191 1201
 
@@ -1585,6 +1595,9 @@  discard block
 block discarded – undo
1585 1595
 		return __( 'Pinterest', 'jetpack' );
1586 1596
 	}
1587 1597
 
1598
+	/**
1599
+	 * @return string
1600
+	 */
1588 1601
 	public function get_image( $post ) {
1589 1602
 		if ( class_exists( 'Jetpack_PostImages' ) ) {
1590 1603
 			$image = Jetpack_PostImages::get_image( $post->ID, array( 'fallback_to_avatars' => true ) );
@@ -1724,6 +1737,9 @@  discard block
 block discarded – undo
1724 1737
 	public $shortname = 'pocket';
1725 1738
 	public $icon = '\f224';
1726 1739
 
1740
+	/**
1741
+	 * @param string $id
1742
+	 */
1727 1743
 	public function __construct( $id, array $settings ) {
1728 1744
 		parent::__construct( $id, $settings );
1729 1745
 
@@ -1839,6 +1855,9 @@  discard block
 block discarded – undo
1839 1855
 class Jetpack_Share_WhatsApp extends Sharing_Source {
1840 1856
 	public $shortname = 'jetpack-whatsapp';
1841 1857
 
1858
+	/**
1859
+	 * @param string $id
1860
+	 */
1842 1861
 	public function __construct( $id, array $settings ) {
1843 1862
 		parent::__construct( $id, $settings );
1844 1863
 	}
Please login to merge, or discard this patch.
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.