Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 616-624 (lines=9) @@
613
614
			wp_send_json_success();
615
		}
616
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
617
			$module_slug = $_REQUEST['jitmModule'];
618
619
			// User went to WordPress.com, track this
620
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
621
			$this->do_stats( 'server_side' );
622
623
			wp_send_json_success();
624
		}
625
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
626
			$track = $_REQUEST['jitmModule'];
627
@@ 625-633 (lines=9) @@
622
623
			wp_send_json_success();
624
		}
625
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
626
			$track = $_REQUEST['jitmModule'];
627
628
			// User is viewing JITM, track it.
629
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
630
			$this->do_stats( 'server_side' );
631
632
			wp_send_json_success();
633
		}
634
	}
635
636
	/**