@@ -141,6 +141,7 @@ |
||
141 | 141 | |
142 | 142 | /** |
143 | 143 | * @since 0.1 |
144 | + * @param string $key |
|
144 | 145 | */ |
145 | 146 | function get_option( $key, $default = null ) { |
146 | 147 | // Options are limited to those specified in $this->valid_settings |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * Convenience function for grabbing options from params->options |
49 | 49 | * @param string $option the option to grab |
50 | - * @param mixed $default (optional) |
|
50 | + * @param boolean $default (optional) |
|
51 | 51 | * @return option or $default if not set |
52 | 52 | * |
53 | 53 | * @since 0.1 |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | /** |
305 | 305 | * Enforce Jetpack activated. Otherwise, load special no-jetpack admin. |
306 | 306 | * |
307 | - * @return true if Jetpack is active and activated |
|
307 | + * @return boolean if Jetpack is active and activated |
|
308 | 308 | * |
309 | 309 | * @since 0.1 |
310 | 310 | */ |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | |
326 | 326 | /** |
327 | 327 | * Check the reasons to bail before we attempt to insert ads. |
328 | - * @return true if we should bail (don't insert ads) |
|
328 | + * @return boolean if we should bail (don't insert ads) |
|
329 | 329 | * |
330 | 330 | * @since 0.1 |
331 | 331 | */ |
@@ -279,6 +279,9 @@ discard block |
||
279 | 279 | $listener->get_full_sync_queue()->reset(); |
280 | 280 | } |
281 | 281 | |
282 | + /** |
|
283 | + * @param integer $default |
|
284 | + */ |
|
282 | 285 | private function get_status_option( $name, $default = null ) { |
283 | 286 | $prefix = self::STATUS_OPTION_PREFIX; |
284 | 287 | |
@@ -313,6 +316,9 @@ discard block |
||
313 | 316 | return $this->read_option( 'jetpack_sync_full_config' ); |
314 | 317 | } |
315 | 318 | |
319 | + /** |
|
320 | + * @param string $name |
|
321 | + */ |
|
316 | 322 | private function write_option( $name, $value ) { |
317 | 323 | // we write our own option updating code to bypass filters/caching/etc on set_option/get_option |
318 | 324 | global $wpdb; |
@@ -340,6 +346,9 @@ discard block |
||
340 | 346 | return $updated_num; |
341 | 347 | } |
342 | 348 | |
349 | + /** |
|
350 | + * @param string $name |
|
351 | + */ |
|
343 | 352 | private function read_option( $name, $default = null ) { |
344 | 353 | global $wpdb; |
345 | 354 | $value = $wpdb->get_var( |