Completed
Push — sync/json-api-base-classes ( 5eb203...555bc2 )
by
unknown
25:58 queued 11:33
created
modules/masterbar/masterbar.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
 		wp_enqueue_script( 'a8c_wpcom_masterbar_overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ) );
114 114
 	}
115 115
 
116
+	/**
117
+	 * @param string $file
118
+	 */
116 119
 	function wpcom_static_url( $file ) {
117 120
 		if ( ! empty( $this->sandbox_url ) ) {
118 121
 			// For testing undeployed changes to remotely enqueued scripts and styles.
@@ -295,6 +298,9 @@  discard block
 block discarded – undo
295 298
 		return $primary_anchor . $secondary_anchor;
296 299
 	}
297 300
 
301
+	/**
302
+	 * @param string $class
303
+	 */
298 304
 	public function create_menu_item_anchor( $class, $url, $label, $id ) {
299 305
 		return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>';
300 306
 	}
Please login to merge, or discard this patch.
modules/shortcodes/soundcloud.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 /**
143 143
  * Plugin options getter
144 144
  *
145
- * @param  string|array $option  Option name
145
+ * @param  string $option  Option name
146 146
  * @param  mixed        $default Default value
147 147
  *
148 148
  * @return mixed                   Option value
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
  *
170 170
  * @param  string $url
171 171
  *
172
- * @return boolean
172
+ * @return integer
173 173
  */
174 174
 function soundcloud_url_has_tracklist( $url ) {
175 175
 	return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url );
Please login to merge, or discard this patch.
class.json-api.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
 	public $extra_headers = array();
34 34
 
35 35
 	/**
36
+	 * @param string $method
37
+	 * @param string $url
38
+	 * @param string $post_body
36 39
 	 * @return WPCOM_JSON_API instance
37 40
 	 */
38 41
 	static function init( $method = null, $url = null, $post_body = null ) {
@@ -335,6 +338,9 @@  discard block
 block discarded – undo
335 338
 		return call_user_func_array( array( $endpoint, 'callback' ), $path_pieces );
336 339
 	}
337 340
 
341
+	/**
342
+	 * @param integer $status_code
343
+	 */
338 344
 	function output_early( $status_code, $response = null, $content_type = 'application/json' ) {
339 345
 		$exit = $this->exit;
340 346
 		$this->exit = false;
@@ -533,11 +539,18 @@  discard block
 block discarded – undo
533 539
 		return json_encode( $data );
534 540
 	}
535 541
 
542
+	/**
543
+	 * @param string $needle
544
+	 */
536 545
 	function ends_with( $haystack, $needle ) {
537 546
 		return $needle === substr( $haystack, -strlen( $needle ) );
538 547
 	}
539 548
 
540 549
 	// Returns the site's blog_id in the WP.com ecosystem
550
+
551
+	/**
552
+	 * @return integer
553
+	 */
541 554
 	function get_blog_id_for_output() {
542 555
 		return $this->token_details['blog_id'];
543 556
 	}
@@ -560,6 +573,10 @@  discard block
 block discarded – undo
560 573
 	}
561 574
 
562 575
 	// Returns true if the specified blog ID is a restricted blog
576
+
577
+	/**
578
+	 * @param integer $blog_id
579
+	 */
563 580
 	function is_restricted_blog( $blog_id ) {
564 581
 		/**
565 582
 		 * Filters all REST API access and return a 403 unauthorized response for all Restricted blog IDs.
Please login to merge, or discard this patch.