Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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