@@ -420,6 +420,10 @@ discard block |
||
420 | 420 | } |
421 | 421 | |
422 | 422 | // functions |
423 | + |
|
424 | + /** |
|
425 | + * @param string $name |
|
426 | + */ |
|
423 | 427 | public function get_callable( $name ) { |
424 | 428 | $value = get_option( 'jetpack_' . $name ); |
425 | 429 | |
@@ -688,6 +692,9 @@ discard block |
||
688 | 692 | return $histogram; |
689 | 693 | } |
690 | 694 | |
695 | + /** |
|
696 | + * @param string|null $id_column |
|
697 | + */ |
|
691 | 698 | private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true ) { |
692 | 699 | global $wpdb; |
693 | 700 | |
@@ -725,6 +732,9 @@ discard block |
||
725 | 732 | |
726 | 733 | } |
727 | 734 | |
735 | + /** |
|
736 | + * @param string $where_sql |
|
737 | + */ |
|
728 | 738 | private function meta_count( $table, $where_sql, $min_id, $max_id ) { |
729 | 739 | global $wpdb; |
730 | 740 |
@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | return isset( $args['arguments'] ) ? json_decode( $args['arguments'] ) : array(); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param double $gmt_time |
|
29 | + */ |
|
27 | 30 | protected function is_cron_locked( $gmt_time ) { |
28 | 31 | // The cron lock: a unix timestamp from when the cron was spawned. |
29 | 32 | $doing_cron_transient = $this->get_cron_lock(); |
@@ -33,6 +36,9 @@ discard block |
||
33 | 36 | return $doing_cron_transient; |
34 | 37 | } |
35 | 38 | |
39 | + /** |
|
40 | + * @param string $doing_wp_cron |
|
41 | + */ |
|
36 | 42 | protected function maybe_unlock_cron( $doing_wp_cron ) { |
37 | 43 | if ( $this->get_cron_lock() == $doing_wp_cron ) { |
38 | 44 | delete_transient( 'doing_cron' ); |