Completed
Push — add/sal-post ( 4a4572 )
by
unknown
10:34
created
sal/class.json-api-post-base.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 	public $context;
17 17
 	public $site;
18 18
 
19
+	/**
20
+	 * @param Jetpack_Site $site
21
+	 */
19 22
 	function __construct( $site, $post, $context ) {
20 23
 		$this->post = $post;
21 24
 		$this->context = $context;
@@ -487,6 +490,10 @@  discard block
 block discarded – undo
487 490
 		return $suggestions;
488 491
 	}
489 492
 
493
+	/**
494
+	 * @param string $taxonomy_type
495
+	 * @param string $context
496
+	 */
490 497
 	private function format_taxonomy( $taxonomy, $taxonomy_type, $context ) {
491 498
 		// Permissions
492 499
 		switch ( $context ) {
Please login to merge, or discard this patch.
sal/class.json-api-site-base.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 	public $blog_id;
17 17
 	public $platform;
18 18
 
19
+	/**
20
+	 * @param WPORG_Platform $platform
21
+	 */
19 22
 	public function __construct( $blog_id, $platform ) {
20 23
 		$this->blog_id = $blog_id;
21 24
 		$this->platform = $platform;
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
 	abstract public function wrap_post( $post, $context );
93 96
 
94 97
 
98
+	/**
99
+	 * @param string $context
100
+	 */
95 101
 	public function get_post_by_id( $post_id, $context ) {
96 102
 		$post = get_post( $post_id, OBJECT, $context );
97 103
 
Please login to merge, or discard this patch.
sal/class.json-api-links.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
 	 *
27 27
 	 * Used to construct meta links in API responses
28 28
 	 *
29
-	 * @param mixed $args Optional arguments to be appended to URL
30 29
 	 * @return string Endpoint URL
31 30
 	 **/
32 31
 	function get_link() {
@@ -117,7 +116,7 @@  discard block
 block discarded – undo
117 116
 	 * This method is used in get_link() to construct meta links for API responses.
118 117
 	 * 
119 118
 	 * @param $template_path The generic endpoint path, e.g. /sites/%s
120
-	 * @param $path string The current endpoint path, relative to the version, e.g. /sites/12345
119
+	 * @param string $path string The current endpoint path, relative to the version, e.g. /sites/12345
121 120
 	 * @param $method string Request method used to access the endpoint path
122 121
 	 * @return string The current version, or otherwise the maximum version available
123 122
 	 */
Please login to merge, or discard this patch.