Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 894-902 (lines=9) @@
891
892
			wp_send_json_success();
893
		}
894
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
895
			$module_slug = $_REQUEST['jitmModule'];
896
897
			// User went to WordPress.com, track this
898
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
899
			$this->do_stats( 'server_side' );
900
901
			wp_send_json_success();
902
		}
903
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
904
			$track = $_REQUEST['jitmModule'];
905
@@ 903-911 (lines=9) @@
900
901
			wp_send_json_success();
902
		}
903
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
904
			$track = $_REQUEST['jitmModule'];
905
906
			// User is viewing JITM, track it.
907
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
908
			$this->do_stats( 'server_side' );
909
910
			wp_send_json_success();
911
		}
912
	}
913
914
	/**