Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 780-788 (lines=9) @@
777
778
			wp_send_json_success();
779
		}
780
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
781
			$module_slug = $_REQUEST['jitmModule'];
782
783
			// User went to WordPress.com, track this
784
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
785
			$this->do_stats( 'server_side' );
786
787
			wp_send_json_success();
788
		}
789
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
790
			$track = $_REQUEST['jitmModule'];
791
@@ 789-797 (lines=9) @@
786
787
			wp_send_json_success();
788
		}
789
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
790
			$track = $_REQUEST['jitmModule'];
791
792
			// User is viewing JITM, track it.
793
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
794
			$this->do_stats( 'server_side' );
795
796
			wp_send_json_success();
797
		}
798
	}
799
800
	/**