Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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