Code Duplication    Length = 6-6 lines in 2 locations

includes/api/ApiPageSet.php 2 locations

@@ 194-199 (lines=6) @@
191
			if ( isset( $this->mParams['titles'] ) ) {
192
				$dataSource = 'titles';
193
			}
194
			if ( isset( $this->mParams['pageids'] ) ) {
195
				if ( isset( $dataSource ) ) {
196
					$this->dieUsage( "Cannot use 'pageids' at the same time as '$dataSource'", 'multisource' );
197
				}
198
				$dataSource = 'pageids';
199
			}
200
			if ( isset( $this->mParams['revids'] ) ) {
201
				if ( isset( $dataSource ) ) {
202
					$this->dieUsage( "Cannot use 'revids' at the same time as '$dataSource'", 'multisource' );
@@ 200-205 (lines=6) @@
197
				}
198
				$dataSource = 'pageids';
199
			}
200
			if ( isset( $this->mParams['revids'] ) ) {
201
				if ( isset( $dataSource ) ) {
202
					$this->dieUsage( "Cannot use 'revids' at the same time as '$dataSource'", 'multisource' );
203
				}
204
				$dataSource = 'revids';
205
			}
206
207
			if ( !$isDryRun ) {
208
				// Populate page information with the original user input