Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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