Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 663-671 (lines=9) @@
660
661
			wp_send_json_success();
662
		}
663
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
664
			$module_slug = $_REQUEST['jitmModule'];
665
666
			// User went to WordPress.com, track this
667
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
668
			$this->do_stats( 'server_side' );
669
670
			wp_send_json_success();
671
		}
672
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
673
			$track = $_REQUEST['jitmModule'];
674
@@ 672-680 (lines=9) @@
669
670
			wp_send_json_success();
671
		}
672
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
673
			$track = $_REQUEST['jitmModule'];
674
675
			// User is viewing JITM, track it.
676
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
677
			$this->do_stats( 'server_side' );
678
679
			wp_send_json_success();
680
		}
681
	}
682
683
	/**