Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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