Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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