@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * record_event |
52 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
52 | + * @param Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
53 | 53 | * Properties are included directly in the pixel query string after light validation. |
54 | 54 | * @return mixed True on success, WP_Error on failure |
55 | 55 | */ |
@@ -74,6 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Synchronously request the pixel |
77 | + * @param string $pixel |
|
77 | 78 | */ |
78 | 79 | static function record_pixel( $pixel ) { |
79 | 80 | // Add the Request Timestamp and URL terminator just before the HTTP request. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param string $event_name The name of the event |
38 | 38 | * @param array $properties Custom properties to send with the event |
39 | 39 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
40 | - * @return \Tracks_Event|\WP_Error |
|
40 | + * @return Tracks_Event |
|
41 | 41 | */ |
42 | 42 | function tracks_build_event_obj( $user |
43 | 43 | , $event_name |
@@ -78,7 +78,6 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
80 | 80 | * |
81 | - * @param mixed $identity username, user_id, or WP_user object |
|
82 | 81 | * @param string $event_name The name of the event |
83 | 82 | * @param array $properties Custom properties to send with the event |
84 | 83 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -24,6 +24,9 @@ |
||
24 | 24 | self::record_user_event( 'module_deactivated', array( 'module' => $module ) ); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $event_type |
|
29 | + */ |
|
27 | 30 | static function record_user_event( $event_type, $data ) { |
28 | 31 | |
29 | 32 | $user = wp_get_current_user(); |
@@ -51,6 +51,9 @@ |
||
51 | 51 | return $return; |
52 | 52 | } |
53 | 53 | |
54 | +/** |
|
55 | + * @param string $file |
|
56 | + */ |
|
54 | 57 | function github_gist_simple_embed( $id, $file ) { |
55 | 58 | $embed_url = $id . '.js' . $file; |
56 | 59 |