Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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