@@ -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 ( |
@@ -340,6 +340,9 @@ discard block |
||
| 340 | 340 | <?php |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | + /** |
|
| 344 | + * @param string $header |
|
| 345 | + */ |
|
| 343 | 346 | static function show_tag( $header, $tag, $url = null, $section = null, $is_last = false ) { |
| 344 | 347 | $is_compact = $is_last ? '' : 'is-compact'; |
| 345 | 348 | if ( isset( $url ) ) { |
@@ -556,6 +559,10 @@ discard block |
||
| 556 | 559 | self::show_toggle( __( 'Email Notifications', 'jetpack-beta' ), 'email_notifications', $email_notification ); |
| 557 | 560 | } |
| 558 | 561 | |
| 562 | + /** |
|
| 563 | + * @param string $option |
|
| 564 | + * @param boolean $value |
|
| 565 | + */ |
|
| 559 | 566 | static function show_toggle( $name, $option, $value ) { |
| 560 | 567 | $query = array( |
| 561 | 568 | 'page' => 'jetpack-beta', |