Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

@@ 4328-4335 (lines=8) @@
4325
		return ( $a['sort'] < $b['sort'] ) ? -1 : 1;
4326
	}
4327
4328
	function sync_reindex_trigger() {
4329
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4330
			echo json_encode( $this->sync->reindex_trigger() );
4331
		} else {
4332
			echo '{"status":"ERROR"}';
4333
		}
4334
		exit;
4335
	}
4336
4337
	function sync_reindex_status(){
4338
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
@@ 4337-4344 (lines=8) @@
4334
		exit;
4335
	}
4336
4337
	function sync_reindex_status(){
4338
		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) {
4339
			echo json_encode( $this->sync->reindex_status() );
4340
		} else {
4341
			echo '{"status":"ERROR"}';
4342
		}
4343
		exit;
4344
	}
4345
4346
/* Client API */
4347