Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 760-768 (lines=9) @@
757
758
			wp_send_json_success();
759
		}
760
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
761
			$module_slug = $_REQUEST['jitmModule'];
762
763
			// User went to WordPress.com, track this
764
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
765
			$this->do_stats( 'server_side' );
766
767
			wp_send_json_success();
768
		}
769
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
770
			$track = $_REQUEST['jitmModule'];
771
@@ 769-777 (lines=9) @@
766
767
			wp_send_json_success();
768
		}
769
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
770
			$track = $_REQUEST['jitmModule'];
771
772
			// User is viewing JITM, track it.
773
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
774
			$this->do_stats( 'server_side' );
775
776
			wp_send_json_success();
777
		}
778
	}
779
780
	/**