@@ -172,6 +172,9 @@ |
||
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param string $when |
|
177 | + */ |
|
175 | 178 | private function schedule_sync( $when ) { |
176 | 179 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
177 | 180 | } |
@@ -36,6 +36,9 @@ |
||
36 | 36 | return self::$initialized_modules; |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $module_name |
|
41 | + */ |
|
39 | 42 | public static function get_module( $module_name ) { |
40 | 43 | foreach( self::get_modules() as $module ) { |
41 | 44 | if ( $module->name() === $module_name ) { |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | return array(); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param string[] $actions_to_count |
|
28 | + */ |
|
26 | 29 | protected function count_actions( $action_names, $actions_to_count ) { |
27 | 30 | return count( array_intersect( $action_names, $actions_to_count ) ); |
28 | 31 | } |
@@ -31,6 +34,9 @@ discard block |
||
31 | 34 | return crc32( json_encode( $values ) ); |
32 | 35 | } |
33 | 36 | |
37 | + /** |
|
38 | + * @param integer $new_sum |
|
39 | + */ |
|
34 | 40 | protected function still_valid_checksum( $sums_to_check, $name, $new_sum ) { |
35 | 41 | if ( isset( $sums_to_check[ $name ] ) && $sums_to_check[ $name ] === $new_sum ) { |
36 | 42 | return true; |
@@ -38,6 +44,11 @@ discard block |
||
38 | 44 | return false; |
39 | 45 | } |
40 | 46 | |
47 | + /** |
|
48 | + * @param string $action_name |
|
49 | + * @param string $id_field |
|
50 | + * @param null|string $where_sql |
|
51 | + */ |
|
41 | 52 | protected function enqueue_all_ids_as_action( $action_name, $table_name, $id_field, $where_sql ) { |
42 | 53 | global $wpdb; |
43 | 54 | |
@@ -71,6 +82,9 @@ discard block |
||
71 | 82 | return $chunk_count; |
72 | 83 | } |
73 | 84 | |
85 | + /** |
|
86 | + * @param string $meta_type |
|
87 | + */ |
|
74 | 88 | protected function get_metadata( $ids, $meta_type ) { |
75 | 89 | global $wpdb; |
76 | 90 | $table = _get_meta_table( $meta_type ); |