Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 701-709 (lines=9) @@
698
699
			wp_send_json_success();
700
		}
701
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
702
			$module_slug = $_REQUEST['jitmModule'];
703
704
			// User went to WordPress.com, track this
705
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
706
			$this->do_stats( 'server_side' );
707
708
			wp_send_json_success();
709
		}
710
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
711
			$track = $_REQUEST['jitmModule'];
712
@@ 710-718 (lines=9) @@
707
708
			wp_send_json_success();
709
		}
710
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
711
			$track = $_REQUEST['jitmModule'];
712
713
			// User is viewing JITM, track it.
714
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
715
			$this->do_stats( 'server_side' );
716
717
			wp_send_json_success();
718
		}
719
	}
720
721
	/**