Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 236-246 (lines=11) @@
233
		wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' );
234
	}
235
236
	private function maybe_sync_constants() {
237
		$constants           = $this->get_all_constants();
238
		if ( empty( $constants ) ) {
239
			return;
240
		}
241
		$constants_check_sum = $this->get_check_sum( $constants );
242
		if ( $constants_check_sum !== get_option( self::$constants_checksum_option_name ) ) {
243
			do_action( 'jetpack_sync_current_constants', $constants );
244
			update_option( self::$constants_checksum_option_name, $constants_check_sum );
245
		}
246
	}
247
248
	private function get_all_constants() {
249
		return array_combine(
@@ 263-274 (lines=12) @@
260
		return null;
261
	}
262
263
	private function maybe_sync_callables() {
264
		$callables           = $this->get_all_callables();
265
		if ( empty( $callables ) ) {
266
			return;
267
		}
268
		$callables_check_sum = $this->get_check_sum( $callables );
269
270
		if ( $callables_check_sum !== get_option( self::$functions_checksum_option_name ) ) {
271
			do_action( 'jetpack_sync_current_callables', $callables  );
272
			update_option( self::$functions_checksum_option_name, $callables_check_sum );
273
		}
274
	}
275
276
	private function get_all_callables() {
277
		return array_combine(