Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 956-964 (lines=9) @@
953
954
			wp_send_json_success();
955
		}
956
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
957
			$module_slug = $_REQUEST['jitmModule'];
958
959
			// User went to WordPress.com, track this
960
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
961
			$this->do_stats( 'server_side' );
962
963
			wp_send_json_success();
964
		}
965
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
966
			$track = $_REQUEST['jitmModule'];
967
@@ 965-973 (lines=9) @@
962
963
			wp_send_json_success();
964
		}
965
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
966
			$track = $_REQUEST['jitmModule'];
967
968
			// User is viewing JITM, track it.
969
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
970
			$this->do_stats( 'server_side' );
971
972
			wp_send_json_success();
973
		}
974
	}
975
976
	/**