Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 856-864 (lines=9) @@
853
854
			wp_send_json_success();
855
		}
856
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
857
			$module_slug = $_REQUEST['jitmModule'];
858
859
			// User went to WordPress.com, track this
860
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
861
			$this->do_stats( 'server_side' );
862
863
			wp_send_json_success();
864
		}
865
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
866
			$track = $_REQUEST['jitmModule'];
867
@@ 865-873 (lines=9) @@
862
863
			wp_send_json_success();
864
		}
865
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
866
			$track = $_REQUEST['jitmModule'];
867
868
			// User is viewing JITM, track it.
869
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
870
			$this->do_stats( 'server_side' );
871
872
			wp_send_json_success();
873
		}
874
	}
875
876
	/**