@@ -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 ) { |
@@ -194,6 +194,9 @@ discard block |
||
194 | 194 | return $value; |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param string $name |
|
199 | + */ |
|
197 | 200 | private static function update_grouped_option( $group, $name, $value ) { |
198 | 201 | $options = get_option( self::$grouped_options[ $group ] ); |
199 | 202 | if ( ! is_array( $options ) ) { |
@@ -296,6 +299,9 @@ discard block |
||
296 | 299 | return $result; |
297 | 300 | } |
298 | 301 | |
302 | + /** |
|
303 | + * @param string $name |
|
304 | + */ |
|
299 | 305 | private static function get_grouped_option( $group, $name, $default ) { |
300 | 306 | $options = get_option( self::$grouped_options[ $group ] ); |
301 | 307 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
@@ -328,6 +334,9 @@ discard block |
||
328 | 334 | // Raw option methods allow Jetpack to get / update / delete options via direct DB queries, including options |
329 | 335 | // that are not created by the Jetpack plugin. This is helpful when we need to bypass cache and filters. |
330 | 336 | |
337 | + /** |
|
338 | + * @param string $name |
|
339 | + */ |
|
331 | 340 | static function update_raw_option( $name, $value, $autoload = false ) { |
332 | 341 | |
333 | 342 | $autoload_value = $autoload ? 'yes' : 'no'; |
@@ -358,6 +367,9 @@ discard block |
||
358 | 367 | return $updated_num; |
359 | 368 | } |
360 | 369 | |
370 | + /** |
|
371 | + * @param string $name |
|
372 | + */ |
|
361 | 373 | static function get_raw_option( $name, $default = null ) { |
362 | 374 | global $wpdb; |
363 | 375 | $value = $wpdb->get_var( |