From: Aaron Schulz Date: Tue, 1 Sep 2015 03:41:02 +0000 (-0700) Subject: Avoid some unused parameter IDEA errors in User.php X-Git-Tag: 1.31.0-rc.0~10137^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=7389dd7676c643202ddb0ac8112e0f7958888e9f;p=lhc%2Fweb%2Fwiklou.git Avoid some unused parameter IDEA errors in User.php Change-Id: I75e56ab02af6aee5dbed1735ae8a3a415094508d --- diff --git a/includes/User.php b/includes/User.php index 9b958f42dd..da8ff7925d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3208,10 +3208,10 @@ class User implements IDBAccessObject { /** * Check if user is allowed to access a feature / make an action * - * @param string $permissions,... Permissions to test + * @param string ... Permissions to test * @return bool True if user is allowed to perform *any* of the given actions */ - public function isAllowedAny( /*...*/ ) { + public function isAllowedAny() { $permissions = func_get_args(); foreach ( $permissions as $permission ) { if ( $this->isAllowed( $permission ) ) { @@ -3223,10 +3223,10 @@ class User implements IDBAccessObject { /** * - * @param string $permissions,... Permissions to test + * @param string ... Permissions to test * @return bool True if the user is allowed to perform *all* of the given actions */ - public function isAllowedAll( /*...*/ ) { + public function isAllowedAll() { $permissions = func_get_args(); foreach ( $permissions as $permission ) { if ( !$this->isAllowed( $permission ) ) {