@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Converts GlotPress URL into a GlotPress API URL |
| 24 | 24 | * |
| 25 | - * @param sring $url URL |
|
| 25 | + * @param string $url URL |
|
| 26 | 26 | * @return sstring API URL |
| 27 | 27 | */ |
| 28 | 28 | function apize_url( $url ) { |
@@ -183,7 +183,6 @@ |
||
| 183 | 183 | /** |
| 184 | 184 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
| 185 | 185 | * |
| 186 | - * @param mixed $identity username, user_id, or WP_user object |
|
| 187 | 186 | * @param string $event_name The name of the event |
| 188 | 187 | * @param array $properties Custom properties to send with the event |
| 189 | 188 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * record_event |
| 51 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
| 51 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
| 52 | 52 | * Properties are included directly in the pixel query string after light validation. |
| 53 | 53 | * @return mixed True on success, WP_Error on failure |
| 54 | 54 | */ |
@@ -71,6 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * Synchronously request the pixel |
| 74 | + * @param string $pixel |
|
| 74 | 75 | */ |
| 75 | 76 | static function record_pixel( $pixel ) { |
| 76 | 77 | // Add the Request Timestamp and URL terminator just before the HTTP request. |
@@ -54,7 +54,6 @@ discard block |
||
| 54 | 54 | * Constructor for Jetpack_RelatedPosts. |
| 55 | 55 | * |
| 56 | 56 | * @uses get_option, add_action, apply_filters |
| 57 | - * @param Assets $assets |
|
| 58 | 57 | * |
| 59 | 58 | * @return null |
| 60 | 59 | */ |
@@ -490,6 +489,9 @@ discard block |
||
| 490 | 489 | return $this->_options; |
| 491 | 490 | } |
| 492 | 491 | |
| 492 | + /** |
|
| 493 | + * @param string $option_name |
|
| 494 | + */ |
|
| 493 | 495 | public function get_option( $option_name ) { |
| 494 | 496 | $options = $this->get_options(); |
| 495 | 497 | |
@@ -1651,6 +1653,8 @@ discard block |
||
| 1651 | 1653 | * Enqueues assets needed to do async loading of related posts. |
| 1652 | 1654 | * |
| 1653 | 1655 | * @uses wp_enqueue_script, wp_enqueue_style, plugins_url |
| 1656 | + * @param boolean $script |
|
| 1657 | + * @param boolean $style |
|
| 1654 | 1658 | * @return null |
| 1655 | 1659 | */ |
| 1656 | 1660 | protected function _enqueue_assets( $script, $style ) { |
@@ -28,7 +28,6 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * JITM constructor. |
| 30 | 30 | * |
| 31 | - * @param \Automattic\Jetpack\Assets $assets |
|
| 32 | 31 | */ |
| 33 | 32 | public function __construct() { |
| 34 | 33 | $this->tracking = new Tracking(); |
@@ -67,7 +66,7 @@ discard block |
||
| 67 | 66 | * |
| 68 | 67 | * @uses Jetpack_Autoupdate::get_possible_failures() |
| 69 | 68 | * |
| 70 | - * @param object $screen |
|
| 69 | + * @param \stdClass $screen |
|
| 71 | 70 | */ |
| 72 | 71 | function prepare_jitms( $screen ) { |
| 73 | 72 | if ( ! in_array( |