Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 199-209 (lines=11) @@
196
		}
197
	}
198
199
	private function maybe_sync_constants() {
200
		$constants           = $this->get_all_constants();
201
		if ( empty( $constants ) ) {
202
			return;
203
		}
204
		$constants_check_sum = $this->get_check_sum( $constants );
205
		if ( $constants_check_sum !== get_option( self::$constants_checksum_option_name ) ) {
206
			do_action( 'jetpack_sync_current_constants', $constants );
207
			update_option( self::$constants_checksum_option_name, $constants_check_sum );
208
		}
209
	}
210
211
	private function get_all_constants() {
212
		return array_combine(
@@ 226-237 (lines=12) @@
223
		return null;
224
	}
225
226
	private function maybe_sync_callables() {
227
		$callables           = $this->get_all_callables();
228
		if ( empty( $callables ) ) {
229
			return;
230
		}
231
		$callables_check_sum = $this->get_check_sum( $callables );
232
233
		if ( $callables_check_sum !== get_option( self::$functions_checksum_option_name ) ) {
234
			do_action( 'jetpack_sync_current_callables', $callables  );
235
			update_option( self::$functions_checksum_option_name, $callables_check_sum );
236
		}
237
	}
238
239
	private function get_all_callables() {
240
		return array_combine(