Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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