Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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