Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 938-946 (lines=9) @@
935
936
			wp_send_json_success();
937
		}
938
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
939
			$module_slug = $_REQUEST['jitmModule'];
940
941
			// User went to WordPress.com, track this
942
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
943
			$this->do_stats( 'server_side' );
944
945
			wp_send_json_success();
946
		}
947
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
948
			$track = $_REQUEST['jitmModule'];
949
@@ 947-955 (lines=9) @@
944
945
			wp_send_json_success();
946
		}
947
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
948
			$track = $_REQUEST['jitmModule'];
949
950
			// User is viewing JITM, track it.
951
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
952
			$this->do_stats( 'server_side' );
953
954
			wp_send_json_success();
955
		}
956
	}
957
958
	/**