Code Duplication    Length = 5-7 lines in 2 locations

maintenance/backupPrefetch.inc 2 locations

@@ 111-115 (lines=5) @@
108
	 */
109
	function nextPage() {
110
		if ( $this->skipTo( 'page', 'mediawiki' ) ) {
111
			if ( $this->skipTo( 'id' ) ) {
112
				$this->lastPage = intval( $this->nodeContents() );
113
				$this->lastRev = 0;
114
				$this->atPageEnd = false;
115
			}
116
		} else {
117
			$this->close();
118
			if ( count( $this->infiles ) ) {
@@ 130-136 (lines=7) @@
127
	 * @access private
128
	 */
129
	function nextRev() {
130
		if ( $this->skipTo( 'revision' ) ) {
131
			if ( $this->skipTo( 'id' ) ) {
132
				$this->lastRev = intval( $this->nodeContents() );
133
			}
134
		} else {
135
			$this->atPageEnd = true;
136
		}
137
	}
138
139
	/**