@@ -99,6 +99,9 @@ |
||
99 | 99 | return $user; |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @param \WP_User|null $user |
|
104 | + */ |
|
102 | 105 | public function expand_user( $user ) { |
103 | 106 | if ( ! is_object( $user ) ) { |
104 | 107 | return null; |
@@ -194,6 +194,9 @@ discard block |
||
194 | 194 | do_action( 'jetpack_full_sync_end', '', $range ); |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param string $type |
|
199 | + */ |
|
197 | 200 | function get_range( $type ) { |
198 | 201 | global $wpdb; |
199 | 202 | if ( ! in_array( $type, array( 'comments', 'posts' ) ) ) { |
@@ -404,6 +407,9 @@ discard block |
||
404 | 407 | $listener->get_full_sync_queue()->reset(); |
405 | 408 | } |
406 | 409 | |
410 | + /** |
|
411 | + * @param integer $default |
|
412 | + */ |
|
407 | 413 | private function get_status_option( $name, $default = null ) { |
408 | 414 | $value = \Jetpack_Options::get_raw_option( self::STATUS_OPTION_PREFIX . "_$name", $default ); |
409 | 415 |