Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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