From 8c8198eeeaa513bb215ebec3f41fa739b42b7c3d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 29 Jun 2015 11:11:06 +0200 Subject: [PATCH] UserGroupBackendForm: Some small documentation fixes --- .../forms/Config/UserGroup/UserGroupBackendForm.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/forms/Config/UserGroup/UserGroupBackendForm.php b/application/forms/Config/UserGroup/UserGroupBackendForm.php index 5bd0d9681..d47e1f4fa 100644 --- a/application/forms/Config/UserGroup/UserGroupBackendForm.php +++ b/application/forms/Config/UserGroup/UserGroupBackendForm.php @@ -32,9 +32,11 @@ class UserGroupBackendForm extends ConfigForm /** * Return a form object for the given backend type * - * @param string $type The backend type for which to return a form + * @param string $type The backend type for which to return a form * * @return Form + * + * @throws InvalidArgumentException In case the given backend type is invalid */ public function getBackendForm($type) { @@ -74,6 +76,8 @@ class UserGroupBackendForm extends ConfigForm /** * Add a new user group backend * + * The backend to add is identified by the array-key `name'. + * * @param array $data * * @return $this @@ -171,7 +175,7 @@ class UserGroupBackendForm extends ConfigForm 'pattern' => '/^[^\\[\\]:]+$/', 'messages' => array( 'regexNotMatch' => $this->translate( - 'The backend name cannot contain \'[\', \']\' or \':\'.' + 'The name cannot contain \'[\', \']\' or \':\'.' ) ) )