@@ -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 ) { |
@@ -199,6 +199,9 @@ discard block |
||
199 | 199 | return $value; |
200 | 200 | } |
201 | 201 | |
202 | + /** |
|
203 | + * @param string $name |
|
204 | + */ |
|
202 | 205 | private static function update_grouped_option( $group, $name, $value ) { |
203 | 206 | $options = get_option( self::$grouped_options[ $group ] ); |
204 | 207 | if ( ! is_array( $options ) ) { |
@@ -301,6 +304,9 @@ discard block |
||
301 | 304 | return $result; |
302 | 305 | } |
303 | 306 | |
307 | + /** |
|
308 | + * @param string $name |
|
309 | + */ |
|
304 | 310 | private static function get_grouped_option( $group, $name, $default ) { |
305 | 311 | $options = get_option( self::$grouped_options[ $group ] ); |
306 | 312 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |
@@ -418,7 +424,7 @@ discard block |
||
418 | 424 | * This function checks for a constant that, if present, will disable direct DB queries Jetpack uses to manage certain options and force Jetpack to always use Options API instead. |
419 | 425 | * Options can be selectively managed via a blacklist by filtering option names via the jetpack_disabled_raw_option filter. |
420 | 426 | * |
421 | - * @param $name Option name |
|
427 | + * @param string $name Option name |
|
422 | 428 | * |
423 | 429 | * @return bool |
424 | 430 | */ |
@@ -171,6 +171,9 @@ |
||
171 | 171 | update_option( 'jetpack_plugin_api_action_links', $plugins_action_links ); |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param integer $checksum |
|
176 | + */ |
|
174 | 177 | public function should_send_callable( $callable_checksums, $name, $checksum ) { |
175 | 178 | $idc_override_callables = array( |
176 | 179 | 'main_network_site', |