Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 249-259 (lines=11) @@
246
		wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' );
247
	}
248
249
	private function maybe_sync_constants() {
250
		$constants           = $this->get_all_constants();
251
		if ( empty( $constants ) ) {
252
			return;
253
		}
254
		$constants_check_sum = $this->get_check_sum( $constants );
255
		if ( $constants_check_sum !== get_option( self::$constants_checksum_option_name ) ) {
256
			do_action( 'jetpack_sync_current_constants', $constants );
257
			update_option( self::$constants_checksum_option_name, $constants_check_sum );
258
		}
259
	}
260
261
	private function get_all_constants() {
262
		return array_combine(
@@ 276-287 (lines=12) @@
273
		return null;
274
	}
275
276
	private function maybe_sync_callables() {
277
		$callables           = $this->get_all_callables();
278
		if ( empty( $callables ) ) {
279
			return;
280
		}
281
		$callables_check_sum = $this->get_check_sum( $callables );
282
283
		if ( $callables_check_sum !== get_option( self::$functions_checksum_option_name ) ) {
284
			do_action( 'jetpack_sync_current_callables', $callables  );
285
			update_option( self::$functions_checksum_option_name, $callables_check_sum );
286
		}
287
	}
288
289
	private function get_all_callables() {
290
		return array_combine(