Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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