Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 725-733 (lines=9) @@
722
723
			wp_send_json_success();
724
		}
725
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
726
			$module_slug = $_REQUEST['jitmModule'];
727
728
			// User went to WordPress.com, track this
729
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
730
			$this->do_stats( 'server_side' );
731
732
			wp_send_json_success();
733
		}
734
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
735
			$track = $_REQUEST['jitmModule'];
736
@@ 734-742 (lines=9) @@
731
732
			wp_send_json_success();
733
		}
734
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
735
			$track = $_REQUEST['jitmModule'];
736
737
			// User is viewing JITM, track it.
738
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
739
			$this->do_stats( 'server_side' );
740
741
			wp_send_json_success();
742
		}
743
	}
744
745
	/**