Completed
Push — fix/add-constant-to-disable-ra... ( cdd701 )
by
unknown
07:42
created
class.jetpack-options.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ] ) ) {
@@ -417,7 +423,7 @@  discard block
 block discarded – undo
417 423
 	/**
418 424
 	 * This function lets us by pass certain options to be gotten via the raw sql calls.
419 425
 	 * Instead we should use the regular wp calls.
420
-	 * @param $name Option name
426
+	 * @param string $name Option name
421 427
 	 *
422 428
 	 * @return bool
423 429
 	 */
Please login to merge, or discard this patch.