Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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