Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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