@@ -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; |
@@ -508,6 +511,9 @@ discard block |
||
| 508 | 511 | return $suggestions; |
| 509 | 512 | } |
| 510 | 513 | |
| 514 | + /** |
|
| 515 | + * @param string $context |
|
| 516 | + */ |
|
| 511 | 517 | private function format_taxonomy( $taxonomy, $taxonomy_type, $context ) { |
| 512 | 518 | // Permissions |
| 513 | 519 | switch ( $context ) { |
@@ -281,8 +281,6 @@ |
||
| 281 | 281 | /** |
| 282 | 282 | * Builds map display HTML code from the supplied latitude and longitude. |
| 283 | 283 | * |
| 284 | - * @param float $lat Map Latitude |
|
| 285 | - * @param float $lon Map Longitude |
|
| 286 | 284 | * |
| 287 | 285 | * @return string HTML of the map |
| 288 | 286 | */ |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Constructor |
| 65 | - * @param array $css contains the class csstidy |
|
| 65 | + * @param csstidy $css contains the class csstidy |
|
| 66 | 66 | * @access private |
| 67 | 67 | * @version 1.0 |
| 68 | 68 | */ |
@@ -107,7 +107,6 @@ |
||
| 107 | 107 | /** |
| 108 | 108 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
| 109 | 109 | * |
| 110 | - * @param mixed $identity username, user_id, or WP_user object |
|
| 111 | 110 | * @param string $event_name The name of the event |
| 112 | 111 | * @param array $properties Custom properties to send with the event |
| 113 | 112 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -1404,7 +1404,7 @@ |
||
| 1404 | 1404 | /** |
| 1405 | 1405 | * Migration routine for moving safecss from wp_options to wp_posts to support revisions |
| 1406 | 1406 | * |
| 1407 | - * @return void |
|
| 1407 | + * @return false|null |
|
| 1408 | 1408 | */ |
| 1409 | 1409 | static function upgrade() { |
| 1410 | 1410 | $css = get_option( 'safecss' ); |
@@ -107,6 +107,9 @@ |
||
| 107 | 107 | $this->enqueue_action( current_filter(), func_get_args(), $this->sync_queue ); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param Jetpack_Sync_Queue $queue |
|
| 112 | + */ |
|
| 110 | 113 | function enqueue_action( $current_filter, $args, $queue ) { |
| 111 | 114 | |
| 112 | 115 | /** |
@@ -170,6 +170,9 @@ |
||
| 170 | 170 | $listener->get_full_sync_queue()->reset(); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param integer $default |
|
| 175 | + */ |
|
| 173 | 176 | private function get_status_option( $option, $default = null ) { |
| 174 | 177 | $prefix = self::STATUS_OPTION_PREFIX; |
| 175 | 178 | |
@@ -381,8 +381,8 @@ |
||
| 381 | 381 | * |
| 382 | 382 | * @param $width int Width of the image |
| 383 | 383 | * @param $height int Height of the image |
| 384 | -* @param $req_width int Required width to pass validation |
|
| 385 | -* @param $req_height int Required height to pass validation |
|
| 384 | +* @param integer $req_width int Required width to pass validation |
|
| 385 | +* @param integer $req_height int Required height to pass validation |
|
| 386 | 386 | * @return bool - True if the image passed the required size validation |
| 387 | 387 | */ |
| 388 | 388 | function _jetpack_og_get_image_validate_size($width, $height, $req_width, $req_height) { |
@@ -1283,7 +1283,7 @@ |
||
| 1283 | 1283 | * Returns an array of stock and custom taxonomy query vars |
| 1284 | 1284 | * |
| 1285 | 1285 | * @global $wp_taxonomies |
| 1286 | - * @return array |
|
| 1286 | + * @return string[] |
|
| 1287 | 1287 | */ |
| 1288 | 1288 | function get_taxonomy_vars() { |
| 1289 | 1289 | global $wp_taxonomies; |