Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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