Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 665-673 (lines=9) @@
662
663
			wp_send_json_success();
664
		}
665
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
666
			$module_slug = $_REQUEST['jitmModule'];
667
668
			// User went to WordPress.com, track this
669
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
670
			$this->do_stats( 'server_side' );
671
672
			wp_send_json_success();
673
		}
674
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
675
			$track = $_REQUEST['jitmModule'];
676
@@ 674-682 (lines=9) @@
671
672
			wp_send_json_success();
673
		}
674
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
675
			$track = $_REQUEST['jitmModule'];
676
677
			// User is viewing JITM, track it.
678
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
679
			$this->do_stats( 'server_side' );
680
681
			wp_send_json_success();
682
		}
683
	}
684
685
	/**