Completed
Push — update/refactor-rna-connection ( dce247...82f45d )
by
unknown
43:09 queued 33:07
created
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.
plugins/jetpack/tests/php/modules/publicize/test_class.publicize.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -139,6 +139,9 @@
 block discarded – undo
139 139
 		unregister_post_type( 'foo' );
140 140
 	}
141 141
 
142
+	/**
143
+	 * @param boolean $should_have_publicized
144
+	 */
142 145
 	function assertPublicized( $should_have_publicized, $post ) {
143 146
 		if ( $should_have_publicized ) {
144 147
 			$this->assertEquals( $post->ID, $this->publicized_post_id, 'Is not the same post ID' );
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/packages/autoloader/src/class-php-autoloader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 	 *
101 101
 	 * @param string $class_name The name of the class to autoload.
102 102
 	 *
103
-	 * @return bool Indicates whether or not a class file was loaded.
103
+	 * @return null|boolean Indicates whether or not a class file was loaded.
104 104
 	 */
105 105
 	public static function load_class( $class_name ) {
106 106
 		global $jetpack_autoloader_loader;
Please login to merge, or discard this patch.