@@ -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 ) { |
@@ -197,6 +197,9 @@ discard block |
||
197 | 197 | return $value; |
198 | 198 | } |
199 | 199 | |
200 | + /** |
|
201 | + * @param string $name |
|
202 | + */ |
|
200 | 203 | private static function update_grouped_option( $group, $name, $value ) { |
201 | 204 | $options = get_option( self::$grouped_options[ $group ] ); |
202 | 205 | if ( ! is_array( $options ) ) { |
@@ -299,6 +302,9 @@ discard block |
||
299 | 302 | return $result; |
300 | 303 | } |
301 | 304 | |
305 | + /** |
|
306 | + * @param string $name |
|
307 | + */ |
|
302 | 308 | private static function get_grouped_option( $group, $name, $default ) { |
303 | 309 | $options = get_option( self::$grouped_options[ $group ] ); |
304 | 310 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
@@ -410,7 +416,7 @@ discard block |
||
410 | 416 | * @since 5.4.0 |
411 | 417 | * |
412 | 418 | * @param boolean $strip_unsafe_options If true, and by default, will strip out options necessary for the connection to WordPress.com. |
413 | - * @return array An array of all options managed via the Jetpack_Options class. |
|
419 | + * @return string[] An array of all options managed via the Jetpack_Options class. |
|
414 | 420 | */ |
415 | 421 | static function get_all_jetpack_options( $strip_unsafe_options = true ) { |
416 | 422 | $jetpack_options = self::get_option_names(); |
@@ -453,7 +459,7 @@ discard block |
||
453 | 459 | * |
454 | 460 | * @since 5.4.0 |
455 | 461 | * |
456 | - * @return array |
|
462 | + * @return string[] |
|
457 | 463 | */ |
458 | 464 | static function get_all_wp_options() { |
459 | 465 | // A manual build of the wp options |