Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 716-724 (lines=9) @@
713
714
			wp_send_json_success();
715
		}
716
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
717
			$module_slug = $_REQUEST['jitmModule'];
718
719
			// User went to WordPress.com, track this
720
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
721
			$this->do_stats( 'server_side' );
722
723
			wp_send_json_success();
724
		}
725
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
726
			$track = $_REQUEST['jitmModule'];
727
@@ 725-733 (lines=9) @@
722
723
			wp_send_json_success();
724
		}
725
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
726
			$track = $_REQUEST['jitmModule'];
727
728
			// User is viewing JITM, track it.
729
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
730
			$this->do_stats( 'server_side' );
731
732
			wp_send_json_success();
733
		}
734
	}
735
736
	/**