Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 749-757 (lines=9) @@
746
747
			wp_send_json_success();
748
		}
749
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
750
			$module_slug = $_REQUEST['jitmModule'];
751
752
			// User went to WordPress.com, track this
753
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
754
			$this->do_stats( 'server_side' );
755
756
			wp_send_json_success();
757
		}
758
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
759
			$track = $_REQUEST['jitmModule'];
760
@@ 758-766 (lines=9) @@
755
756
			wp_send_json_success();
757
		}
758
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
759
			$track = $_REQUEST['jitmModule'];
760
761
			// User is viewing JITM, track it.
762
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
763
			$this->do_stats( 'server_side' );
764
765
			wp_send_json_success();
766
		}
767
	}
768
769
	/**