Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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