Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 2 locations

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