Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 682-690 (lines=9) @@
679
680
			wp_send_json_success();
681
		}
682
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
683
			$module_slug = $_REQUEST['jitmModule'];
684
685
			// User went to WordPress.com, track this
686
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
687
			$this->do_stats( 'server_side' );
688
689
			wp_send_json_success();
690
		}
691
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
692
			$track = $_REQUEST['jitmModule'];
693
@@ 691-699 (lines=9) @@
688
689
			wp_send_json_success();
690
		}
691
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
692
			$track = $_REQUEST['jitmModule'];
693
694
			// User is viewing JITM, track it.
695
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
696
			$this->do_stats( 'server_side' );
697
698
			wp_send_json_success();
699
		}
700
	}
701
702
	/**