Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 871-879 (lines=9) @@
868
869
			wp_send_json_success();
870
		}
871
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
872
			$module_slug = $_REQUEST['jitmModule'];
873
874
			// User went to WordPress.com, track this
875
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
876
			$this->do_stats( 'server_side' );
877
878
			wp_send_json_success();
879
		}
880
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
881
			$track = $_REQUEST['jitmModule'];
882
@@ 880-888 (lines=9) @@
877
878
			wp_send_json_success();
879
		}
880
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
881
			$track = $_REQUEST['jitmModule'];
882
883
			// User is viewing JITM, track it.
884
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
885
			$this->do_stats( 'server_side' );
886
887
			wp_send_json_success();
888
		}
889
	}
890
891
	/**