Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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