Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 608-616 (lines=9) @@
605
606
			wp_send_json_success();
607
		}
608
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
609
			$module_slug = $_REQUEST['jitmModule'];
610
611
			// User went to WordPress.com, track this
612
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
613
			$this->do_stats( 'server_side' );
614
615
			wp_send_json_success();
616
		}
617
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
618
			$track = $_REQUEST['jitmModule'];
619
@@ 617-625 (lines=9) @@
614
615
			wp_send_json_success();
616
		}
617
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
618
			$track = $_REQUEST['jitmModule'];
619
620
			// User is viewing JITM, track it.
621
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
622
			$this->do_stats( 'server_side' );
623
624
			wp_send_json_success();
625
		}
626
	}
627
628
	/**