From 83489d3684485543d1fdbe6594da10c3f1f61b85 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 30 Jul 2014 00:40:20 +0200 Subject: [PATCH] property code style extensions --- ActiveField.php | 12 +----------- ActiveForm.php | 2 +- Alert.php | 1 + Button.php | 1 + ButtonDropdown.php | 1 + ButtonGroup.php | 1 + Carousel.php | 1 + Collapse.php | 1 + Dropdown.php | 3 ++- Modal.php | 1 + Nav.php | 1 + NavBar.php | 1 + Progress.php | 1 + Tabs.php | 1 + Widget.php | 1 + 15 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ActiveField.php b/ActiveField.php index b892fdb..75890b2 100644 --- a/ActiveField.php +++ b/ActiveField.php @@ -95,17 +95,14 @@ class ActiveField extends \yii\widgets\ActiveField * @var bool whether to render [[checkboxList()]] and [[radioList()]] inline. */ public $inline = false; - /** * @var string|null optional template to render the `{input}` placeholder content */ public $inputTemplate; - /** * @var array options for the wrapper tag, used in the `{beginWrapper}` placeholder */ public $wrapperOptions = []; - /** * @var null|array CSS grid classes for horizontal layout. This must be an array with these keys: * - 'offset' the offset grid class to append to the wrapper if no label is rendered @@ -115,47 +112,40 @@ class ActiveField extends \yii\widgets\ActiveField * - 'hint' the hint grid class */ public $horizontalCssClasses; - /** * @var string the template for checkboxes in default layout */ public $checkboxTemplate = "
\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n
"; - /** * @var string the template for radios in default layout */ public $radioTemplate = "
\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n
"; - /** * @var string the template for checkboxes in horizontal layout */ public $horizontalCheckboxTemplate = "{beginWrapper}\n
\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n
\n{error}\n{endWrapper}\n{hint}"; - /** * @var string the template for radio buttons in horizontal layout */ public $horizontalRadioTemplate = "{beginWrapper}\n
\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n
\n{error}\n{endWrapper}\n{hint}"; - /** * @var string the template for inline checkboxLists */ public $inlineCheckboxListTemplate = "{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}"; - /** * @var string the template for inline radioLists */ public $inlineRadioListTemplate = "{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}"; - /** * @var bool whether to render the error. Default is `true` except for layout `inline`. */ public $enableError = true; - /** * @var bool whether to render the label. Default is `true`. */ public $enableLabel = true; + /** * @inheritdoc */ diff --git a/ActiveForm.php b/ActiveForm.php index 0a3b821..b034a00 100644 --- a/ActiveForm.php +++ b/ActiveForm.php @@ -69,7 +69,6 @@ class ActiveForm extends \yii\widgets\ActiveForm * @var array HTML attributes for the form tag. Default is `['role' => 'form']`. */ public $options = ['role' => 'form']; - /** * @var string the form layout. Either 'default', 'horizontal' or 'inline'. * By choosing a layout, an appropriate default field configuration is applied. This will @@ -79,6 +78,7 @@ class ActiveForm extends \yii\widgets\ActiveForm */ public $layout = 'default'; + /** * @inheritdoc */ diff --git a/Alert.php b/Alert.php index 60c34c8..91e8d9b 100644 --- a/Alert.php +++ b/Alert.php @@ -68,6 +68,7 @@ class Alert extends Widget */ public $closeButton = []; + /** * Initializes the widget. */ diff --git a/Button.php b/Button.php index d13c9e9..0c21a3e 100644 --- a/Button.php +++ b/Button.php @@ -39,6 +39,7 @@ class Button extends Widget */ public $encodeLabel = true; + /** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. diff --git a/ButtonDropdown.php b/ButtonDropdown.php index 2324312..5fc6f62 100644 --- a/ButtonDropdown.php +++ b/ButtonDropdown.php @@ -59,6 +59,7 @@ class ButtonDropdown extends Widget */ public $encodeLabel = true; + /** * Renders the widget. */ diff --git a/ButtonGroup.php b/ButtonGroup.php index bbf54b4..7066b96 100644 --- a/ButtonGroup.php +++ b/ButtonGroup.php @@ -52,6 +52,7 @@ class ButtonGroup extends Widget */ public $encodeLabels = true; + /** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. diff --git a/Carousel.php b/Carousel.php index 25027f2..68c3def 100644 --- a/Carousel.php +++ b/Carousel.php @@ -66,6 +66,7 @@ class Carousel extends Widget */ public $items = []; + /** * Initializes the widget. */ diff --git a/Collapse.php b/Collapse.php index c4f42ca..0a48448 100644 --- a/Collapse.php +++ b/Collapse.php @@ -59,6 +59,7 @@ class Collapse extends Widget */ public $items = []; + /** * Initializes the widget. */ diff --git a/Dropdown.php b/Dropdown.php index fab353b..5fe406c 100644 --- a/Dropdown.php +++ b/Dropdown.php @@ -45,7 +45,8 @@ class Dropdown extends Widget * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ protected $_containerOptions = []; - + + /** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. diff --git a/Modal.php b/Modal.php index 6235278..62e8221 100644 --- a/Modal.php +++ b/Modal.php @@ -82,6 +82,7 @@ class Modal extends Widget */ public $toggleButton; + /** * Initializes the widget. */ diff --git a/Nav.php b/Nav.php index 3a5791f..29641a9 100644 --- a/Nav.php +++ b/Nav.php @@ -93,6 +93,7 @@ class Nav extends Widget */ public $params; + /** * Initializes the widget. */ diff --git a/NavBar.php b/NavBar.php index af41725..4a9f587 100644 --- a/NavBar.php +++ b/NavBar.php @@ -85,6 +85,7 @@ class NavBar extends Widget */ public $innerContainerOptions = []; + /** * Initializes the widget. */ diff --git a/Progress.php b/Progress.php index 1c466f6..dbeed97 100644 --- a/Progress.php +++ b/Progress.php @@ -89,6 +89,7 @@ class Progress extends Widget */ public $bars; + /** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. diff --git a/Tabs.php b/Tabs.php index a618df5..87407b7 100644 --- a/Tabs.php +++ b/Tabs.php @@ -102,6 +102,7 @@ class Tabs extends Widget */ public $navType = 'nav-tabs'; + /** * Initializes the widget. */ diff --git a/Widget.php b/Widget.php index 2984e7a..6e6bc85 100644 --- a/Widget.php +++ b/Widget.php @@ -39,6 +39,7 @@ class Widget extends \yii\base\Widget */ public $clientEvents = []; + /** * Initializes the widget. * This method will register the bootstrap asset bundle. If you override this method,