Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 706-714 (lines=9) @@
703
704
			wp_send_json_success();
705
		}
706
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
707
			$module_slug = $_REQUEST['jitmModule'];
708
709
			// User went to WordPress.com, track this
710
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
711
			$this->do_stats( 'server_side' );
712
713
			wp_send_json_success();
714
		}
715
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
716
			$track = $_REQUEST['jitmModule'];
717
@@ 715-723 (lines=9) @@
712
713
			wp_send_json_success();
714
		}
715
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
716
			$track = $_REQUEST['jitmModule'];
717
718
			// User is viewing JITM, track it.
719
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
720
			$this->do_stats( 'server_side' );
721
722
			wp_send_json_success();
723
		}
724
	}
725
726
	/**