@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Toggle options autoupdates and email notifications |
113 | 113 | * |
114 | - * @param var $option - Which option is being toggled. |
|
114 | + * @param string $option - Which option is being toggled. |
|
115 | 115 | */ |
116 | 116 | public static function is_toggle_action( $option ) { |
117 | 117 | return ( |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | /** |
358 | 358 | * Display tag for branch we're working on. |
359 | 359 | * |
360 | - * @param var $header - Title of the branch. |
|
360 | + * @param string $header - Title of the branch. |
|
361 | 361 | * @param var $tag - Specifies which branch. |
362 | 362 | * @param var $url - Contains branch data (title, update date, download link, commit, etc). |
363 | 363 | * @param var $section - The kind of branch we're switching to (stable, rc, master, pr). |
@@ -407,6 +407,9 @@ discard block |
||
407 | 407 | <?php |
408 | 408 | } |
409 | 409 | |
410 | + /** |
|
411 | + * @param var|null $section |
|
412 | + */ |
|
410 | 413 | static function activate_button( $branch, $section ) { |
411 | 414 | if ( is_object( $section ) && $branch === 'master' ) { |
412 | 415 | $section = 'master'; |
@@ -579,6 +582,10 @@ discard block |
||
579 | 582 | self::show_toggle( __( 'Email Notifications', 'jetpack-beta' ), 'email_notifications', $email_notification ); |
580 | 583 | } |
581 | 584 | |
585 | + /** |
|
586 | + * @param string $option |
|
587 | + * @param boolean $value |
|
588 | + */ |
|
582 | 589 | static function show_toggle( $name, $option, $value ) { |
583 | 590 | $query = array( |
584 | 591 | 'page' => 'jetpack-beta', |