Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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