Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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