Code Duplication    Length = 11-11 lines in 2 locations

sync/class.jetpack-sync-client.php 2 locations

@@ 481-491 (lines=11) @@
478
		do_action( 'jetpack_full_sync_network_options', true );
479
	}
480
481
	private function maybe_sync_constants() {
482
		$constants = $this->get_all_constants();
483
		if ( empty( $constants ) ) {
484
			return;
485
		}
486
		$constants_check_sum = $this->get_check_sum( $constants );
487
		if ( $constants_check_sum !== (int) get_option( self::$constants_checksum_option_name ) ) {
488
			do_action( 'jetpack_sync_current_constants', $constants );
489
			update_option( self::$constants_checksum_option_name, $constants_check_sum );
490
		}
491
	}
492
493
	private function get_all_constants() {
494
		return array_combine(
@@ 513-523 (lines=11) @@
510
		$this->maybe_sync_callables();
511
	}
512
513
	private function maybe_sync_callables() {
514
		$callables = $this->get_all_callables();
515
		if ( empty( $callables ) ) {
516
			return;
517
		}
518
		$callables_check_sum = $this->get_check_sum( $callables );
519
		if ( $callables_check_sum !== (int) get_option( self::$functions_checksum_option_name ) ) {
520
			do_action( 'jetpack_sync_current_callables', $callables );
521
			update_option( self::$functions_checksum_option_name, $callables_check_sum );
522
		}
523
	}
524
525
	private function get_all_callables() {
526
		return array_combine(