Code Duplication    Length = 9-9 lines in 2 locations

includes/user/User.php 2 locations

@@ 3496-3504 (lines=9) @@
3493
	 * @param string ... Permissions to test
3494
	 * @return bool True if user is allowed to perform *any* of the given actions
3495
	 */
3496
	public function isAllowedAny() {
3497
		$permissions = func_get_args();
3498
		foreach ( $permissions as $permission ) {
3499
			if ( $this->isAllowed( $permission ) ) {
3500
				return true;
3501
			}
3502
		}
3503
		return false;
3504
	}
3505
3506
	/**
3507
	 *
@@ 3511-3519 (lines=9) @@
3508
	 * @param string ... Permissions to test
3509
	 * @return bool True if the user is allowed to perform *all* of the given actions
3510
	 */
3511
	public function isAllowedAll() {
3512
		$permissions = func_get_args();
3513
		foreach ( $permissions as $permission ) {
3514
			if ( !$this->isAllowed( $permission ) ) {
3515
				return false;
3516
			}
3517
		}
3518
		return true;
3519
	}
3520
3521
	/**
3522
	 * Internal mechanics of testing a permission