Code Duplication    Length = 10-10 lines in 2 locations

includes/api/ApiQueryAllDeletedRevisions.php 2 locations

@@ 191-200 (lines=10) @@
188
					$w = $db->makeList( $w, LIST_AND );
189
					$where[$w][] = $ns;
190
				}
191
				if ( count( $where ) == 1 ) {
192
					$where = key( $where );
193
					$this->addWhere( $where );
194
				} else {
195
					$where2 = [];
196
					foreach ( $where as $w => $ns ) {
197
						$where2[] = $db->makeList( [ $w, 'ar_namespace' => $ns ], LIST_AND );
198
					}
199
					$this->addWhere( $db->makeList( $where2, LIST_OR ) );
200
				}
201
			}
202
203
			if ( isset( $params['prefix'] ) ) {
@@ 211-220 (lines=10) @@
208
						$db->anyString() );
209
					$where[$w][] = $ns;
210
				}
211
				if ( count( $where ) == 1 ) {
212
					$where = key( $where );
213
					$this->addWhere( $where );
214
				} else {
215
					$where2 = [];
216
					foreach ( $where as $w => $ns ) {
217
						$where2[] = $db->makeList( [ $w, 'ar_namespace' => $ns ], LIST_AND );
218
					}
219
					$this->addWhere( $db->makeList( $where2, LIST_OR ) );
220
				}
221
			}
222
		} else {
223
			if ( $this->getConfig()->get( 'MiserMode' ) ) {