Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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