Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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