Code Duplication    Length = 9-9 lines in 2 locations

includes/user/User.php 2 locations

@@ 3407-3415 (lines=9) @@
3404
	 * @param string ... Permissions to test
3405
	 * @return bool True if user is allowed to perform *any* of the given actions
3406
	 */
3407
	public function isAllowedAny() {
3408
		$permissions = func_get_args();
3409
		foreach ( $permissions as $permission ) {
3410
			if ( $this->isAllowed( $permission ) ) {
3411
				return true;
3412
			}
3413
		}
3414
		return false;
3415
	}
3416
3417
	/**
3418
	 *
@@ 3422-3430 (lines=9) @@
3419
	 * @param string ... Permissions to test
3420
	 * @return bool True if the user is allowed to perform *all* of the given actions
3421
	 */
3422
	public function isAllowedAll() {
3423
		$permissions = func_get_args();
3424
		foreach ( $permissions as $permission ) {
3425
			if ( !$this->isAllowed( $permission ) ) {
3426
				return false;
3427
			}
3428
		}
3429
		return true;
3430
	}
3431
3432
	/**
3433
	 * Internal mechanics of testing a permission