Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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