Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 672-680 (lines=9) @@
669
670
			wp_send_json_success();
671
		}
672
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
673
			$module_slug = $_REQUEST['jitmModule'];
674
675
			// User went to WordPress.com, track this
676
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
677
			$this->do_stats( 'server_side' );
678
679
			wp_send_json_success();
680
		}
681
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
682
			$track = $_REQUEST['jitmModule'];
683
@@ 681-689 (lines=9) @@
678
679
			wp_send_json_success();
680
		}
681
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
682
			$track = $_REQUEST['jitmModule'];
683
684
			// User is viewing JITM, track it.
685
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
686
			$this->do_stats( 'server_side' );
687
688
			wp_send_json_success();
689
		}
690
	}
691
692
	/**