diff --git a/src/Accordion.php b/src/Accordion.php index e130be4..519d4d8 100644 --- a/src/Accordion.php +++ b/src/Accordion.php @@ -1,4 +1,9 @@ Previous', 'Next', ]; - /** * @var bool whether carousel indicators (
    tag with anchors to items) should be displayed or not. */ diff --git a/src/Dropdown.php b/src/Dropdown.php index 2d6806d..918c3eb 100644 --- a/src/Dropdown.php +++ b/src/Dropdown.php @@ -1,4 +1,9 @@ + * @link http://www.yiiframework.com/ + * @copyright Copyright (c) 2008 Yii Software LLC + * @license http://www.yiiframework.com/license/ */ +declare(strict_types=1); + namespace yii\bootstrap5; use yii\helpers\ArrayHelper; @@ -42,22 +45,18 @@ class Offcanvas extends Widget * @var string Where to place the offcanvas. Can be of of the [[PLACEMENT_*]] constants. */ public $placement = self::PLACEMENT_START; - /** * @var boolean Whether to enable backdrop or not. Defaults to `true`. */ public $backdrop = true; - /** * @var boolean Whether to enable body scrolling or not. Defaults to `false`. */ public $scrolling = false; - /** * @var string The title content in the offcanvas container. */ public $title; - /** * @var array|false the options for rendering the close button tag. * The close button is displayed in the header of the offcanvas container. Clicking @@ -72,7 +71,6 @@ class Offcanvas extends Widget * for the supported HTML attributes. */ public $closeButton = []; - /** * @var array|false the options for rendering the toggle button tag. * The toggle button is used to toggle the visibility of the modal window. @@ -88,13 +86,11 @@ class Offcanvas extends Widget * for the supported HTML attributes. */ public $toggleButton = false; - /** * @var array Additional header options. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $headerOptions = []; - /** * @var array Additional title options. * @@ -105,13 +101,13 @@ class Offcanvas extends Widget * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $titleOptions = []; - /** * @var array Additional body options. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $bodyOptions = []; + /** * {@inheritDoc} */ diff --git a/src/Popover.php b/src/Popover.php index fa2ba34..53627f6 100644 --- a/src/Popover.php +++ b/src/Popover.php @@ -1,9 +1,12 @@ + * @link http://www.yiiframework.com/ + * @copyright Copyright (c) 2008 Yii Software LLC + * @license http://www.yiiframework.com/license/ */ +declare(strict_types=1); + namespace yii\bootstrap5; use yii\helpers\ArrayHelper; @@ -35,7 +38,6 @@ class Popover extends Widget const PLACEMENT_BOTTOM = 'bottom'; const PLACEMENT_LEFT = 'left'; const PLACEMENT_RIGHT = 'right'; - const TRIGGER_CLICK = 'click'; const TRIGGER_HOVER = 'hover'; const TRIGGER_FOCUS = 'focus'; @@ -81,6 +83,7 @@ class Popover extends Widget */ public $toggleButton = false; + /** * {@inheritDoc} */ diff --git a/src/Progress.php b/src/Progress.php index 3056fab..2edd3f9 100644 --- a/src/Progress.php +++ b/src/Progress.php @@ -1,4 +1,9 @@
    Content 2
    HTML; - $this->assertEquals($expected, $html); + $this->assertEqualsWithoutLE($expected, $html); } public function testHeaderOptions()