From 017eef936eafc9304f42c72fd26ec01cc58ef0fc Mon Sep 17 00:00:00 2001 From: Michael Grosse <grosse@cosmocode.de> Date: Thu, 22 Dec 2016 12:07:51 +0100 Subject: [PATCH] refactor: rename parameters to be less ambiguous --- inc/Form/OptGroup.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/Form/OptGroup.php b/inc/Form/OptGroup.php index a32324850..66e29f974 100644 --- a/inc/Form/OptGroup.php +++ b/inc/Form/OptGroup.php @@ -8,12 +8,11 @@ class OptGroup extends Element { protected $value; /** - * @param string $name The name of this form element - * @param string $options The available options * @param string $label The label text for this element (will be autoescaped) + * @param array $options The available options */ - public function __construct($name, $options) { - parent::__construct('optGroup', array('label' => $name)); + public function __construct($label, $options) { + parent::__construct('optGroup', array('label' => $label)); $this->options($options); } -- GitLab