Code Duplication    Length = 7-7 lines in 2 locations

includes/auth/AuthManager.php 2 locations

@@ 216-222 (lines=7) @@
213
			$provider->setManager( $this );
214
			$provider->setConfig( $this->config );
215
			$id = $provider->getUniqueId();
216
			if ( isset( $this->allAuthenticationProviders[$id] ) ) {
217
				throw new \RuntimeException(
218
					"Duplicate specifications for id $id (classes " .
219
						get_class( $provider ) . ' and ' .
220
						get_class( $this->allAuthenticationProviders[$id] ) . ')'
221
				);
222
			}
223
			$this->allAuthenticationProviders[$id] = $provider;
224
			$this->primaryAuthenticationProviders[$id] = $provider;
225
		}
@@ 2301-2307 (lines=7) @@
2298
			$provider->setManager( $this );
2299
			$provider->setConfig( $this->config );
2300
			$id = $provider->getUniqueId();
2301
			if ( isset( $this->allAuthenticationProviders[$id] ) ) {
2302
				throw new \RuntimeException(
2303
					"Duplicate specifications for id $id (classes " .
2304
					get_class( $provider ) . ' and ' .
2305
					get_class( $this->allAuthenticationProviders[$id] ) . ')'
2306
				);
2307
			}
2308
			$this->allAuthenticationProviders[$id] = $provider;
2309
			$ret[$id] = $provider;
2310
		}