Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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