Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 652-660 (lines=9) @@
649
650
			wp_send_json_success();
651
		}
652
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
653
			$module_slug = $_REQUEST['jitmModule'];
654
655
			// User went to WordPress.com, track this
656
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
657
			$this->do_stats( 'server_side' );
658
659
			wp_send_json_success();
660
		}
661
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
662
			$track = $_REQUEST['jitmModule'];
663
@@ 661-669 (lines=9) @@
658
659
			wp_send_json_success();
660
		}
661
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
662
			$track = $_REQUEST['jitmModule'];
663
664
			// User is viewing JITM, track it.
665
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
666
			$this->do_stats( 'server_side' );
667
668
			wp_send_json_success();
669
		}
670
	}
671
672
	/**