Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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