Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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