Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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