Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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