Completed
Push — add/beta-plugin ( d1204d...bcdaa8 )
by
unknown
258:57 queued 247:40
created
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-updates.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
 		$this->assertTrue( (bool) $has_action );
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $new_version
74
+	 */
72 75
 	function new_plugin_response( $new_version ) {
73 76
 		return (object) array(
74 77
 			'response' => array(
@@ -131,6 +134,9 @@  discard block
 block discarded – undo
131 134
 		$this->assertTrue( (bool) $has_action );
132 135
 	}
133 136
 
137
+	/**
138
+	 * @param string $new_version
139
+	 */
134 140
 	public function new_theme_response( $new_version ) {
135 141
 		return (object) array(
136 142
 			'response' => array(
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/sync/test_class.jetpack-sync-woocommerce.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -312,6 +312,10 @@
 block discarded – undo
312 312
 		}
313 313
 	}
314 314
 
315
+	/**
316
+	 * @param string $expected_meta_key
317
+	 * @param integer $expected_meta_value
318
+	 */
315 319
 	private function assertHasObjectMetaValue( $metas, $order_item_id, $expected_meta_key, $expected_meta_value ) {
316 320
 		$has_meta_entry = false;
317 321
 		foreach( $metas as $meta ) {
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/sync/test_interface.jetpack-sync-replicastore.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1032,6 +1032,9 @@
 block discarded – undo
1032 1032
 		return $return;
1033 1033
 	}
1034 1034
 
1035
+	/**
1036
+	 * @param string $slug
1037
+	 */
1035 1038
 	private function ensure_synced_taxonomy( $store, $slug, $type = 'post' ) {
1036 1039
 		register_taxonomy(
1037 1040
 			$slug,
Please login to merge, or discard this patch.
projects/plugins/jetpack/tests/php/lib/wpcom-helper-functions.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
 
14 14
 /**
15 15
  * Wrapper around `WP_REST_Request` constructor. Injects a `sites/$blog_id` into endpoint string for WPCOM environment
16
+ * @param string $path
16 17
  */
17 18
 function wp_rest_request( $method, $path ) {
18 19
 	if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
Please login to merge, or discard this patch.
wpcom-fields/class-wpcom-rest-api-v2-attachment-videopress-data.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 *
104 104
 	 * @param object $attachment The attachment object.
105 105
 	 *
106
-	 * @return false|int
106
+	 * @return boolean
107 107
 	 */
108 108
 	public function is_video( $attachment ) {
109 109
 		return isset( $attachment->post_mime_type ) && wp_startswith( $attachment->post_mime_type, 'video/' );
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 	 * Removes the jetpack_videopress field from the response if the
114 114
 	 * given attachment is not a video.
115 115
 	 *
116
-	 * @param WP_REST_Response $response Response from the attachment endpoint.
117
-	 * @param WP_Post          $attachment The original attachment object.
116
+	 * @param stdClass $response Response from the attachment endpoint.
117
+	 * @param stdClass          $attachment The original attachment object.
118 118
 	 *
119 119
 	 * @return mixed
120 120
 	 */
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 * @param mixed           $object Response from the attachment endpoint.
147 147
 	 * @param WP_REST_Request $request Request to the attachment endpoint.
148 148
 	 *
149
-	 * @return true
149
+	 * @return boolean
150 150
 	 */
151 151
 	public function get_permission_check( $object, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
152 152
 		return true;
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * @param WP_Post         $object The attachment object.
161 161
 	 * @param WP_REST_Request $request Request to the attachment endpoint.
162 162
 	 *
163
-	 * @return true
163
+	 * @return boolean
164 164
 	 */
165 165
 	public function update_permission_check( $value, $object, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
166 166
 		return true;
Please login to merge, or discard this patch.
projects/plugins/beta/jetpack-beta-admin.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
 		exit();
100 100
 	}
101 101
 
102
+	/**
103
+	 * @param string $option
104
+	 */
102 105
 	static function is_toggle_action( $option ) {
103 106
 		return (
104 107
 			isset( $_GET['_nonce'] ) &&
@@ -316,6 +319,9 @@  discard block
 block discarded – undo
316 319
 		<?php
317 320
 	}
318 321
 
322
+	/**
323
+	 * @param string $header
324
+	 */
319 325
 	static function show_tag( $header, $tag, $url = null, $section = null, $is_last = false ) {
320 326
 		$is_compact = $is_last ? '' : 'is-compact';
321 327
 		if ( isset( $url ) ) {
@@ -532,6 +538,10 @@  discard block
 block discarded – undo
532 538
 		self::show_toggle( __( 'Email Notifications', 'jetpack-beta' ), 'email_notifications', $email_notification );
533 539
 	}
534 540
 
541
+	/**
542
+	 * @param string $option
543
+	 * @param boolean $value
544
+	 */
535 545
 	static function show_toggle( $name, $option, $value ) {
536 546
 		$query = array(
537 547
 			'page'    => 'jetpack-beta',
Please login to merge, or discard this patch.
projects/plugins/beta/jetpack-beta.php 1 patch
Doc Comments   +18 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,6 +544,9 @@  discard block
 block discarded – undo
544 544
 		return self::get_jetpack_plugin_version();
545 545
 	}
546 546
 
547
+	/**
548
+	 * @return string
549
+	 */
547 550
 	static function get_new_jetpack_version( $is_dev_version = false ) {
548 551
 		$manifest = self::get_beta_manifest();
549 552
 		if ( $is_dev_version ) {
@@ -646,6 +649,9 @@  discard block
 block discarded – undo
646 649
 		return self::get_jetpack_plugin_info( JETPACK_DEV_PLUGIN_FILE );
647 650
 	}
648 651
 
652
+	/**
653
+	 * @param string $plugin_file
654
+	 */
649 655
 	static function get_jetpack_plugin_info( $plugin_file = null ) {
650 656
 
651 657
 		if ( is_null( $plugin_file ) ) {
@@ -679,6 +685,10 @@  discard block
 block discarded – undo
679 685
 		return self::get_remote_data( JETPACK_ORG_API_URL, 'org_data' );
680 686
 	}
681 687
 
688
+	/**
689
+	 * @param string $url
690
+	 * @param string $transient
691
+	 */
682 692
 	static function get_remote_data( $url, $transient, $bypass = false ) {
683 693
 		$prefix = 'jetpack_beta_';
684 694
 		$cache  = get_site_transient( $prefix . $transient );
@@ -801,6 +811,9 @@  discard block
 block discarded – undo
801 811
 		return $current_manifest_data;
802 812
 	}
803 813
 
814
+	/**
815
+	 * @param string $plugin_folder
816
+	 */
804 817
 	static function proceed_to_install_and_activate( $url, $plugin_folder = JETPACK_DEV_PLUGIN_SLUG, $section ) {
805 818
 		self::proceed_to_install( $url, $plugin_folder, $section );
806 819
 
@@ -855,6 +868,10 @@  discard block
 block discarded – undo
855 868
 		return false;
856 869
 	}
857 870
 
871
+	/**
872
+	 * @param string $current_plugin
873
+	 * @param string $replace_with_plugin
874
+	 */
858 875
 	static function replace_active_plugin( $current_plugin, $replace_with_plugin = null, $force_activate = false ) {
859 876
 		// The autoloader sets the cache in a shutdown hook. Clear it after the autoloader sets it.
860 877
 		add_action( 'shutdown', array( __CLASS__, 'clear_autoloader_plugin_cache' ), 99 );
@@ -1188,7 +1205,7 @@  discard block
 block discarded – undo
1188 1205
 	/**
1189 1206
 	 * Checks if a dir is empty
1190 1207
 	 *
1191
-	 * @param [type] $dir The absolute directory path to check
1208
+	 * @param string $dir The absolute directory path to check
1192 1209
 	 * @return boolean
1193 1210
 	 */
1194 1211
 	static function is_dir_empty( $dir ) {
Please login to merge, or discard this patch.