Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 946-954 (lines=9) @@
943
944
			wp_send_json_success();
945
		}
946
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
947
			$module_slug = $_REQUEST['jitmModule'];
948
949
			// User went to WordPress.com, track this
950
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
951
			$this->do_stats( 'server_side' );
952
953
			wp_send_json_success();
954
		}
955
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
956
			$track = $_REQUEST['jitmModule'];
957
@@ 955-963 (lines=9) @@
952
953
			wp_send_json_success();
954
		}
955
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
956
			$track = $_REQUEST['jitmModule'];
957
958
			// User is viewing JITM, track it.
959
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
960
			$this->do_stats( 'server_side' );
961
962
			wp_send_json_success();
963
		}
964
	}
965
966
	/**