Completed
Push — add/instagram ( 17079c...7db14f )
by
unknown
95:18 queued 87:19
created
class.jetpack-gutenberg.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
 	 * Only enqueue block assets when needed.
519 519
 	 *
520 520
 	 * @param string $type Slug of the block.
521
-	 * @param array  $script_dependencies Script dependencies. Will be merged with automatically
521
+	 * @param string[]  $script_dependencies Script dependencies. Will be merged with automatically
522 522
 	 *                                    detected script dependencies from the webpack build.
523 523
 	 *
524 524
 	 * @return void
@@ -866,10 +866,10 @@  discard block
 block discarded – undo
866 866
 	 * @since 8.3.0
867 867
 	 *
868 868
 	 * @param string $url      URL saved as an attribute in block.
869
-	 * @param array  $allowed  Array of allowed hosts for that block, or regexes to check against.
869
+	 * @param string[]  $allowed  Array of allowed hosts for that block, or regexes to check against.
870 870
 	 * @param bool   $is_regex Array of regexes matching the URL that could be used in block.
871 871
 	 *
872
-	 * @return bool|string
872
+	 * @return false|string
873 873
 	 */
874 874
 	public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) {
875 875
 		if (
Please login to merge, or discard this patch.
modules/widgets/instagram/instagram.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -147,6 +147,9 @@  discard block
 block discarded – undo
147 147
 		return $data;
148 148
 	}
149 149
 
150
+	/**
151
+	 * @param string $path
152
+	 */
150 153
 	private function wpcom_json_api_request_as_blog( $path, $version = 1, $args = array(), $body = null, $base_api_path = 'rest' ) {
151 154
 		if ( ! class_exists( 'Jetpack_Client' ) ) {
152 155
 			return new WP_Error( 'missing_jetpack', 'The `Jetpack_Client` class is missing' );
@@ -262,6 +265,9 @@  discard block
 block discarded – undo
262 265
 		return $url;
263 266
 	}
264 267
 
268
+	/**
269
+	 * @return boolean
270
+	 */
265 271
 	private function is_legacy_token( $token_id ) {
266 272
 		$site = Jetpack_Options::get_option( 'id' );
267 273
 		$path = sprintf( '/sites/%s/instagram/%s/check-legacy', $site, $token_id );
Please login to merge, or discard this patch.