Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 641-649 (lines=9) @@
638
639
			wp_send_json_success();
640
		}
641
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
642
			$module_slug = $_REQUEST['jitmModule'];
643
644
			// User went to WordPress.com, track this
645
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
646
			$this->do_stats( 'server_side' );
647
648
			wp_send_json_success();
649
		}
650
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
651
			$track = $_REQUEST['jitmModule'];
652
@@ 650-658 (lines=9) @@
647
648
			wp_send_json_success();
649
		}
650
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
651
			$track = $_REQUEST['jitmModule'];
652
653
			// User is viewing JITM, track it.
654
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
655
			$this->do_stats( 'server_side' );
656
657
			wp_send_json_success();
658
		}
659
	}
660
661
	/**