Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 432-442 (lines=11) @@
429
		$this->maybe_sync_constants();
430
	}
431
432
	private function maybe_sync_constants() {
433
		$constants = $this->get_all_constants();
434
		if ( empty( $constants ) ) {
435
			return;
436
		}
437
		$constants_check_sum = $this->get_check_sum( $constants );
438
		if ( $constants_check_sum !== get_option( self::$constants_checksum_option_name ) ) {
439
			do_action( 'jetpack_sync_current_constants', $constants );
440
			update_option( self::$constants_checksum_option_name, $constants_check_sum );
441
		}
442
	}
443
444
	private function get_all_constants() {
445
		return array_combine(
@@ 464-475 (lines=12) @@
461
		$this->maybe_sync_callables();
462
	}
463
464
	private function maybe_sync_callables() {
465
		$callables = $this->get_all_callables();
466
		if ( empty( $callables ) ) {
467
			return;
468
		}
469
		$callables_check_sum = $this->get_check_sum( $callables );
470
471
		if ( $callables_check_sum !== get_option( self::$functions_checksum_option_name ) ) {
472
			do_action( 'jetpack_sync_current_callables', $callables );
473
			update_option( self::$functions_checksum_option_name, $callables_check_sum );
474
		}
475
	}
476
477
	private function get_all_callables() {
478
		return array_combine(