@@ -699,8 +699,7 @@ discard block |
||
699 | 699 | * Render the events |
700 | 700 | * |
701 | 701 | * @param string $url (default: '') |
702 | - * @param string $context (default: 'widget') or 'shortcode' |
|
703 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
702 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
704 | 703 | */ |
705 | 704 | public function render( $url = '', $args = array() ) { |
706 | 705 | |
@@ -857,8 +856,7 @@ discard block |
||
857 | 856 | * Wrapper function for iCalendarReader->render() |
858 | 857 | * |
859 | 858 | * @param string $url (default: '') |
860 | - * @param string $context (default: 'widget') or 'shortcode' |
|
861 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
859 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
862 | 860 | */ |
863 | 861 | function icalendar_render_events( $url = '', $args = array() ) { |
864 | 862 | $ical = new iCalendarReader(); |
@@ -107,7 +107,6 @@ |
||
107 | 107 | /** |
108 | 108 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
109 | 109 | * |
110 | - * @param mixed $identity username, user_id, or WP_user object |
|
111 | 110 | * @param string $event_name The name of the event |
112 | 111 | * @param array $properties Custom properties to send with the event |
113 | 112 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * |
177 | 177 | * @since 4.3.0 |
178 | 178 | * |
179 | - * @return array Array of Jetpack modules. |
|
179 | + * @return string Array of Jetpack modules. |
|
180 | 180 | */ |
181 | 181 | public function get_modules() { |
182 | 182 | require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); |
@@ -1104,7 +1104,6 @@ discard block |
||
1104 | 1104 | * |
1105 | 1105 | * @since 4.3.0 |
1106 | 1106 | * |
1107 | - * @param WP_REST_Request $request |
|
1108 | 1107 | * |
1109 | 1108 | * @return bool does a current user have enough privileges. |
1110 | 1109 | */ |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @param string $type The type of option to return. Defaults to 'compact'. |
18 | 18 | * |
19 | - * @return array |
|
19 | + * @return string[] |
|
20 | 20 | */ |
21 | 21 | public static function get_option_names( $type = 'compact' ) { |
22 | 22 | switch ( $type ) { |
@@ -163,6 +163,9 @@ discard block |
||
163 | 163 | return $value; |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @param string $name |
|
168 | + */ |
|
166 | 169 | private static function update_grouped_option( $group, $name, $value ) { |
167 | 170 | $options = get_option( self::$grouped_options[ $group ] ); |
168 | 171 | if ( ! is_array( $options ) ) { |
@@ -257,6 +260,9 @@ discard block |
||
257 | 260 | return $result; |
258 | 261 | } |
259 | 262 | |
263 | + /** |
|
264 | + * @param string $name |
|
265 | + */ |
|
260 | 266 | private static function get_grouped_option( $group, $name, $default ) { |
261 | 267 | $options = get_option( self::$grouped_options[ $group ] ); |
262 | 268 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
@@ -283,6 +283,11 @@ discard block |
||
283 | 283 | ) ); |
284 | 284 | } |
285 | 285 | |
286 | + /** |
|
287 | + * @param string $path |
|
288 | + * @param string $classname |
|
289 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
290 | + */ |
|
286 | 291 | public static function route( $path, $classname, $method, |
287 | 292 | $constructor_arguments = NULL, |
288 | 293 | $endpoint_arguments = NULL |
@@ -1980,7 +1985,7 @@ discard block |
||
1980 | 1985 | * |
1981 | 1986 | * @param string $route Regular expression for the endpoint with the module slug to return. |
1982 | 1987 | * |
1983 | - * @return array |
|
1988 | + * @return string |
|
1984 | 1989 | */ |
1985 | 1990 | public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) { |
1986 | 1991 | |
@@ -2005,7 +2010,7 @@ discard block |
||
2005 | 2010 | * @param string $modules Can be a single module or a list of modules. |
2006 | 2011 | * @param null|string $slug Slug of the module in the first parameter. |
2007 | 2012 | * |
2008 | - * @return array |
|
2013 | + * @return string |
|
2009 | 2014 | */ |
2010 | 2015 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
2011 | 2016 | if ( get_option( 'permalink_structure' ) ) { |
@@ -163,7 +163,7 @@ |
||
163 | 163 | /** |
164 | 164 | * Iterates through expected items ( plugins or themes ) and compares them to actual results. |
165 | 165 | * |
166 | - * @param $items 'plugin' or 'theme' |
|
166 | + * @param string $items 'plugin' or 'theme' |
|
167 | 167 | */ |
168 | 168 | private function log_items( $items ) { |
169 | 169 | if ( ! isset( $this->expected[ $items ] ) ) { |