Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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