Completed
Push — add/sync-rest-2 ( 6d3918...aea86a )
by
unknown
08:56
created
class.json-api.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -29,6 +29,8 @@  discard block
 block discarded – undo
29 29
 	public $did_output = false;
30 30
 
31 31
 	/**
32
+	 * @param string $method
33
+	 * @param string $post_body
32 34
 	 * @return WPCOM_JSON_API instance
33 35
 	 */
34 36
 	static function init( $method = null, $url = null, $post_body = null, $return_new = false ) {
@@ -333,6 +335,9 @@  discard block
 block discarded – undo
333 335
 		return call_user_func_array( array( $endpoint, 'callback' ), $path_pieces );
334 336
 	}
335 337
 
338
+	/**
339
+	 * @param integer $status_code
340
+	 */
336 341
 	function output_early( $status_code, $response = null, $content_type = 'application/json' ) {
337 342
 		$exit = $this->exit;
338 343
 		$this->exit = false;
@@ -527,6 +532,9 @@  discard block
 block discarded – undo
527 532
 		return json_encode( $data );
528 533
 	}
529 534
 
535
+	/**
536
+	 * @param string $needle
537
+	 */
530 538
 	function ends_with( $haystack, $needle ) {
531 539
 		return $needle === substr( $haystack, -strlen( $needle ) );
532 540
 	}
@@ -554,6 +562,10 @@  discard block
 block discarded – undo
554 562
 	}
555 563
 
556 564
 	// Returns true if the specified blog ID is a restricted blog
565
+
566
+	/**
567
+	 * @param integer $blog_id
568
+	 */
557 569
 	function is_restricted_blog( $blog_id ) {
558 570
 		/**
559 571
 		 * Filters all REST API access and return a 403 unauthorized response for all Restricted blog IDs.
@@ -617,6 +629,7 @@  discard block
 block discarded – undo
617 629
 	 * The result is always output, never returned.
618 630
 	 *
619 631
 	 * @param string|null $error_code.  Call with string to start the trapping.  Call with null to stop.
632
+	 * @param string $error_code
620 633
 	 */
621 634
 	function trap_wp_die( $error_code = null ) {
622 635
 		// Stop trapping
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-site-settings-v1-2-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
 	}
28 28
 
29 29
 
30
+	/**
31
+	 * @param string $key
32
+	 */
30 33
 	protected function get_locale( $key ) {
31 34
 		if ( 'locale' == $key ) {
32 35
 			if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-get-options-endpoint.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -59,9 +59,7 @@
 block discarded – undo
59 59
 	 * Get individual setting
60 60
 	 *
61 61
 	 * @param  sting $name
62
-	 * @param  string $type
63 62
 	 * @param  string or array $callback
64
-	 * @param  boolean $is_constant
65 63
 	 * @return value of the setting
66 64
 	 */
67 65
 	static function get( $name ) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-comments.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
 		return self::json_api( self::get_post_api_url( $post_id) );
133 133
 	}
134 134
 
135
+	/**
136
+	 * @param string $url
137
+	 */
135 138
 	static function json_api( $url, $method = 'GET' ) {
136 139
 
137 140
 		require_once JETPACK__PLUGIN_DIR . 'class.json-api.php';
Please login to merge, or discard this patch.
class.jetpack-sync.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -398,6 +398,11 @@  discard block
 block discarded – undo
398 398
 	/* Options Sync */
399 399
 
400 400
 	/* Ah... so much simpler than Posts and Comments :) */
401
+
402
+	/**
403
+	 * @param string $file
404
+	 * @param string $option
405
+	 */
401 406
 	function options( $file, $option /*, $option, ... */ ) {
402 407
 		$options = func_get_args();
403 408
 		$file    = array_shift( $options );
@@ -506,6 +511,7 @@  discard block
 block discarded – undo
506 511
 
507 512
 	/**
508 513
 	 * Returns default values of Constants
514
+	 * @param string $constant
509 515
 	 */
510 516
 	function default_constant( $constant ) {
511 517
 		switch ( $constant ) {
Please login to merge, or discard this patch.