Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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