@@ -16,6 +16,9 @@ discard block |
||
| 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 |
||
| 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 ) { |
@@ -16,6 +16,9 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -26,7 +26,6 @@ discard block |
||
| 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 |
||
| 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 | */ |