@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Convenience function for grabbing options from params->options |
48 | 48 | * @param string $option the option to grab |
49 | - * @param mixed $default (optional) |
|
49 | + * @param boolean $default (optional) |
|
50 | 50 | * @return option or $default if not set |
51 | 51 | * |
52 | 52 | * @since 4.5.0 |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | |
396 | 396 | /** |
397 | 397 | * Check the reasons to bail before we attempt to insert ads. |
398 | - * @return true if we should bail (don't insert ads) |
|
398 | + * @return boolean if we should bail (don't insert ads) |
|
399 | 399 | * |
400 | 400 | * @since 4.5.0 |
401 | 401 | */ |
@@ -63,6 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * Updates user data |
65 | 65 | * |
66 | + * @param integer $user_id |
|
66 | 67 | * @return array |
67 | 68 | */ |
68 | 69 | public function update_user( $user_id, $blog_id ) { |
@@ -242,6 +242,7 @@ |
||
242 | 242 | /** |
243 | 243 | * Returns the current error as an IXR_Error |
244 | 244 | * |
245 | + * @param string $tracks_event_name |
|
245 | 246 | * @return bool|IXR_Error |
246 | 247 | */ |
247 | 248 | function error( $error = null, $tracks_event_name = null, $user = null ) { |
@@ -75,6 +75,9 @@ discard block |
||
75 | 75 | add_action( 'wp_logout', array( $this, 'maybe_logout_user_from_wpcom' ) ); |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $site_slug |
|
80 | + */ |
|
78 | 81 | private function initialize_tracks_events( $site_slug ) { |
79 | 82 | $this->tracks_events = array( |
80 | 83 | //my sites - top level items |
@@ -230,6 +233,9 @@ discard block |
||
230 | 233 | wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true ); |
231 | 234 | } |
232 | 235 | |
236 | + /** |
|
237 | + * @param string $file |
|
238 | + */ |
|
233 | 239 | function wpcom_static_url( $file ) { |
234 | 240 | if ( ! empty( $this->sandbox_url ) ) { |
235 | 241 | // For testing undeployed changes to remotely enqueued scripts and styles. |
@@ -412,6 +418,9 @@ discard block |
||
412 | 418 | return $primary_anchor . $secondary_anchor; |
413 | 419 | } |
414 | 420 | |
421 | + /** |
|
422 | + * @param string $class |
|
423 | + */ |
|
415 | 424 | public function create_menu_item_anchor( $class, $url, $label, $id ) { |
416 | 425 | return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>'; |
417 | 426 | } |