Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 863-871 (lines=9) @@
860
861
			wp_send_json_success();
862
		}
863
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
864
			$module_slug = $_REQUEST['jitmModule'];
865
866
			// User went to WordPress.com, track this
867
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
868
			$this->do_stats( 'server_side' );
869
870
			wp_send_json_success();
871
		}
872
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
873
			$track = $_REQUEST['jitmModule'];
874
@@ 872-880 (lines=9) @@
869
870
			wp_send_json_success();
871
		}
872
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
873
			$track = $_REQUEST['jitmModule'];
874
875
			// User is viewing JITM, track it.
876
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
877
			$this->do_stats( 'server_side' );
878
879
			wp_send_json_success();
880
		}
881
	}
882
883
	/**