Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 720-728 (lines=9) @@
717
718
			wp_send_json_success();
719
		}
720
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
721
			$module_slug = $_REQUEST['jitmModule'];
722
723
			// User went to WordPress.com, track this
724
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
725
			$this->do_stats( 'server_side' );
726
727
			wp_send_json_success();
728
		}
729
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
730
			$track = $_REQUEST['jitmModule'];
731
@@ 729-737 (lines=9) @@
726
727
			wp_send_json_success();
728
		}
729
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
730
			$track = $_REQUEST['jitmModule'];
731
732
			// User is viewing JITM, track it.
733
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
734
			$this->do_stats( 'server_side' );
735
736
			wp_send_json_success();
737
		}
738
	}
739
740
	/**