Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 604-612 (lines=9) @@
601
602
			wp_send_json_success();
603
		}
604
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
605
			$module_slug = $_REQUEST['jitmModule'];
606
607
			// User went to WordPress.com, track this
608
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
609
			$this->do_stats( 'server_side' );
610
611
			wp_send_json_success();
612
		}
613
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
614
			$track = $_REQUEST['jitmModule'];
615
@@ 613-621 (lines=9) @@
610
611
			wp_send_json_success();
612
		}
613
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
614
			$track = $_REQUEST['jitmModule'];
615
616
			// User is viewing JITM, track it.
617
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
618
			$this->do_stats( 'server_side' );
619
620
			wp_send_json_success();
621
		}
622
	}
623
624
	/**