@@ -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. |
@@ -164,6 +164,9 @@ discard block |
||
164 | 164 | self::set_is_sending( null ); |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param null|boolean $is_importing |
|
169 | + */ |
|
167 | 170 | static function set_importing( $is_importing ) { |
168 | 171 | // set to NULL to revert to WP_IMPORTING, the standard behavior |
169 | 172 | self::$is_importing = $is_importing; |
@@ -198,6 +201,9 @@ discard block |
||
198 | 201 | return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST ); |
199 | 202 | } |
200 | 203 | |
204 | + /** |
|
205 | + * @param boolean|null $is_syncing |
|
206 | + */ |
|
201 | 207 | static function set_is_syncing( $is_syncing ) { |
202 | 208 | self::$is_syncing = $is_syncing; |
203 | 209 | } |
@@ -206,6 +212,9 @@ discard block |
||
206 | 212 | return (bool) self::$is_sending; |
207 | 213 | } |
208 | 214 | |
215 | + /** |
|
216 | + * @param boolean|null $is_sending |
|
217 | + */ |
|
209 | 218 | static function set_is_sending( $is_sending ) { |
210 | 219 | self::$is_sending = $is_sending; |
211 | 220 | } |
@@ -356,6 +356,9 @@ discard block |
||
356 | 356 | return $sync_modules; |
357 | 357 | } |
358 | 358 | |
359 | + /** |
|
360 | + * @return string |
|
361 | + */ |
|
359 | 362 | function sanitize_filtered_sync_cron_schedule( $schedule ) { |
360 | 363 | $schedule = sanitize_key( $schedule ); |
361 | 364 | $schedules = wp_get_schedules(); |
@@ -393,6 +396,9 @@ discard block |
||
393 | 396 | ); |
394 | 397 | } |
395 | 398 | |
399 | + /** |
|
400 | + * @param string $hook |
|
401 | + */ |
|
396 | 402 | function maybe_schedule_sync_cron( $schedule, $hook ) { |
397 | 403 | if ( ! $hook ) { |
398 | 404 | return; |
@@ -53,7 +53,6 @@ |
||
53 | 53 | /** |
54 | 54 | * Mock a set of filters. |
55 | 55 | * |
56 | - * @param array $args Array of filters with their arguments. |
|
57 | 56 | * @return phpmock\Mock The mock object. |
58 | 57 | */ |
59 | 58 | protected function mock_filters( $filters = array() ) { |