Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 808-816 (lines=9) @@
805
806
			wp_send_json_success();
807
		}
808
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
809
			$module_slug = $_REQUEST['jitmModule'];
810
811
			// User went to WordPress.com, track this
812
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
813
			$this->do_stats( 'server_side' );
814
815
			wp_send_json_success();
816
		}
817
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
818
			$track = $_REQUEST['jitmModule'];
819
@@ 817-825 (lines=9) @@
814
815
			wp_send_json_success();
816
		}
817
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
818
			$track = $_REQUEST['jitmModule'];
819
820
			// User is viewing JITM, track it.
821
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
822
			$this->do_stats( 'server_side' );
823
824
			wp_send_json_success();
825
		}
826
	}
827
828
	/**