Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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