@@ -111,7 +111,7 @@ |
||
111 | 111 | /** |
112 | 112 | * Iterates through expected items ( plugins or themes ) and compares them to actual results. |
113 | 113 | * |
114 | - * @param $items 'plugin' or 'theme' |
|
114 | + * @param string $items 'plugin' or 'theme' |
|
115 | 115 | */ |
116 | 116 | private function log_items( $items ) { |
117 | 117 |
@@ -65,7 +65,6 @@ discard block |
||
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @param string $file __FILE__ |
68 | - * @param string $option, Option name to sync |
|
69 | 68 | * @param string $option ... |
70 | 69 | */ |
71 | 70 | static function sync_options( $file, $option /*, $option, ... */ ) { |
@@ -76,8 +75,6 @@ discard block |
||
76 | 75 | } |
77 | 76 | /** |
78 | 77 | * @param string $file __FILE__ |
79 | - * @param string $option, Option name to sync |
|
80 | - * @param string $option ... |
|
81 | 78 | */ |
82 | 79 | static function sync_constant( $file, $constant ) { |
83 | 80 | if ( is_network_admin() ) return; |
@@ -353,6 +350,9 @@ discard block |
||
353 | 350 | $this->transition_post_status_action( 'delete', $post->post_status, $post ); |
354 | 351 | } |
355 | 352 | |
353 | + /** |
|
354 | + * @param string $new_status |
|
355 | + */ |
|
356 | 356 | function transition_post_status_action( $new_status, $old_status, $post ) { |
357 | 357 | $sync = $this->get_post_sync_operation( $new_status, $old_status, $post, $this->sync_conditions['posts'] ); |
358 | 358 | if ( !$sync ) { |
@@ -737,6 +737,11 @@ discard block |
||
737 | 737 | /* Options Sync */ |
738 | 738 | |
739 | 739 | /* Ah... so much simpler than Posts and Comments :) */ |
740 | + |
|
741 | + /** |
|
742 | + * @param string $file |
|
743 | + * @param string $option |
|
744 | + */ |
|
740 | 745 | function options( $file, $option /*, $option, ... */ ) { |
741 | 746 | $options = func_get_args(); |
742 | 747 | $file = array_shift( $options ); |
@@ -844,6 +849,7 @@ discard block |
||
844 | 849 | |
845 | 850 | /** |
846 | 851 | * Returns default values of Constants |
852 | + * @param string $constant |
|
847 | 853 | */ |
848 | 854 | function default_constant( $constant ) { |
849 | 855 | switch( $constant ) { |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | * Our [portfolio] shortcode. |
394 | 394 | * Prints Portfolio data styled to look good on *any* theme. |
395 | 395 | * |
396 | - * @return portfolio_shortcode_html |
|
396 | + * @return string |
|
397 | 397 | */ |
398 | 398 | static function portfolio_shortcode( $atts ) { |
399 | 399 | // Default attributes |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | * The Portfolio shortcode loop. |
527 | 527 | * |
528 | 528 | * @todo add theme color styles |
529 | - * @return html |
|
529 | + * @return string |
|
530 | 530 | */ |
531 | 531 | static function portfolio_shortcode_html( $atts ) { |
532 | 532 | |
@@ -618,6 +618,7 @@ discard block |
||
618 | 618 | /** |
619 | 619 | * Individual project class |
620 | 620 | * |
621 | + * @param integer $portfolio_index_number |
|
621 | 622 | * @return string |
622 | 623 | */ |
623 | 624 | static function get_project_class( $portfolio_index_number, $columns ) { |
@@ -725,7 +726,7 @@ discard block |
||
725 | 726 | /** |
726 | 727 | * Displays the author of the current portfolio project. |
727 | 728 | * |
728 | - * @return html |
|
729 | + * @return string |
|
729 | 730 | */ |
730 | 731 | static function get_project_author() { |
731 | 732 | $html = '<div class="project-author"><span>' . esc_html__( 'Author:', 'jetpack' ) . '</span> '; |
@@ -738,7 +739,7 @@ discard block |
||
738 | 739 | /** |
739 | 740 | * Display the featured image if it's available |
740 | 741 | * |
741 | - * @return html |
|
742 | + * @return string|null |
|
742 | 743 | */ |
743 | 744 | static function get_portfolio_thumbnail_link( $post_id ) { |
744 | 745 | if ( has_post_thumbnail( $post_id ) ) { |