Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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