Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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