Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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