Code Duplication    Length = 5-5 lines in 2 locations

includes/specials/SpecialBlock.php 2 locations

@@ 307-311 (lines=5) @@
304
		}
305
306
		# We always need confirmation to do HideUser
307
		if ( $this->requestedHideUser ) {
308
			$fields['Confirm']['type'] = 'check';
309
			unset( $fields['Confirm']['default'] );
310
			$this->preErrors[] = [ 'ipb-confirmhideuser', 'ipb-confirmaction' ];
311
		}
312
313
		# Or if the user is trying to block themselves
314
		if ( (string)$this->target === $this->getUser()->getName() ) {
@@ 314-318 (lines=5) @@
311
		}
312
313
		# Or if the user is trying to block themselves
314
		if ( (string)$this->target === $this->getUser()->getName() ) {
315
			$fields['Confirm']['type'] = 'check';
316
			unset( $fields['Confirm']['default'] );
317
			$this->preErrors[] = [ 'ipb-blockingself', 'ipb-confirmaction' ];
318
		}
319
	}
320
321
	/**