Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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