Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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