@@ -246,6 +246,9 @@ discard block |
||
246 | 246 | return true; |
247 | 247 | } |
248 | 248 | |
249 | + /** |
|
250 | + * @param Jetpack_Sync_Queue_Buffer $buffer |
|
251 | + */ |
|
249 | 252 | function close( $buffer, $ids_to_remove = null ) { |
250 | 253 | $is_valid = $this->validate_checkout( $buffer ); |
251 | 254 | |
@@ -339,6 +342,9 @@ discard block |
||
339 | 342 | return false; |
340 | 343 | } |
341 | 344 | |
345 | + /** |
|
346 | + * @param string $checkout_id |
|
347 | + */ |
|
342 | 348 | private function set_checkout_id( $checkout_id ) { |
343 | 349 | global $wpdb; |
344 | 350 |
@@ -290,6 +290,9 @@ |
||
290 | 290 | return self::DEFAULT_SYNC_CRON_INTERVAL_NAME; |
291 | 291 | } |
292 | 292 | |
293 | + /** |
|
294 | + * @param string $hook |
|
295 | + */ |
|
293 | 296 | static function maybe_schedule_sync_cron( $schedule, $hook ) { |
294 | 297 | if ( ! $hook ) { |
295 | 298 | return; |
@@ -141,6 +141,9 @@ discard block |
||
141 | 141 | return $value; |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param string $name |
|
146 | + */ |
|
144 | 147 | private static function update_grouped_option( $group, $name, $value ) { |
145 | 148 | $options = get_option( self::$grouped_options[ $group ] ); |
146 | 149 | if ( ! is_array( $options ) ) { |
@@ -232,6 +235,9 @@ discard block |
||
232 | 235 | return $result; |
233 | 236 | } |
234 | 237 | |
238 | + /** |
|
239 | + * @param string $name |
|
240 | + */ |
|
235 | 241 | private static function get_grouped_option( $group, $name, $default ) { |
236 | 242 | $options = get_option( self::$grouped_options[ $group ] ); |
237 | 243 | if ( is_array( $options ) && isset( $options[ $name ] ) ) { |