@@ -726,7 +726,7 @@ |
||
726 | 726 | * |
727 | 727 | * @module search |
728 | 728 | * |
729 | - * @param array $aggregations Array of Aggregations (filters) to add to the Jetpack_WPES_Query_Builder |
|
729 | + * @param string $aggregations Array of Aggregations (filters) to add to the Jetpack_WPES_Query_Builder |
|
730 | 730 | * |
731 | 731 | * @param Jetpack_WPES_Query_Builder $builder The builder instance that is creating the ES query |
732 | 732 | */ |
@@ -786,6 +786,9 @@ |
||
786 | 786 | $this->options_save_other( 'google_plus' ); |
787 | 787 | } |
788 | 788 | |
789 | + /** |
|
790 | + * @param string $service_name |
|
791 | + */ |
|
789 | 792 | function options_save_other( $service_name ) { |
790 | 793 | // Nonce check |
791 | 794 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html |
79 | 79 | * |
80 | - * @param $function string name of the function |
|
80 | + * @param string $function string name of the function |
|
81 | 81 | * @param $params array functions parameters |
82 | 82 | * |
83 | 83 | * @return void |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @see https://www.elastic.co/guide/en/elasticsearch/guide/current/decay-functions.html |
96 | 96 | * |
97 | - * @param $function string name of the decay function - linear, exp, or gauss |
|
97 | + * @param string $function string name of the decay function - linear, exp, or gauss |
|
98 | 98 | * @param $params array The decay functions parameters, passed to ES directly |
99 | 99 | * |
100 | 100 | * @return void |
@@ -124,6 +124,9 @@ discard block |
||
124 | 124 | $this->query_bool_boost = $boost; |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param string $aggs_name |
|
129 | + */ |
|
127 | 130 | public function add_aggs( $aggs_name, $aggs ) { |
128 | 131 | $this->aggs_query = true; |
129 | 132 | $this->aggs[$aggs_name] = $aggs; |
@@ -646,7 +646,7 @@ |
||
646 | 646 | * handlers should be copied when the theme context is loaded by the REST API. |
647 | 647 | * |
648 | 648 | * @param array $copy_dirs Copy paths with actions to be copied |
649 | - * @return array Copy paths with featured content plugin |
|
649 | + * @return string[] Copy paths with featured content plugin |
|
650 | 650 | */ |
651 | 651 | function wpcom_rest_api_featured_content_copy_plugin_actions( $copy_dirs ) { |
652 | 652 | $copy_dirs[] = __FILE__; |