From 6407b26d69a0f38a40956d87a0763ca41a2b46ab Mon Sep 17 00:00:00 2001 From: mscherer Date: Sun, 23 Sep 2018 21:38:07 +0200 Subject: [PATCH] Fix doc blocks and isAutoLayoutEnabled() method. --- src/View/ViewBuilder.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/View/ViewBuilder.php b/src/View/ViewBuilder.php index 4434c59e27a..0b8d9b9f280 100644 --- a/src/View/ViewBuilder.php +++ b/src/View/ViewBuilder.php @@ -34,14 +34,14 @@ class ViewBuilder implements JsonSerializable, Serializable /** * The subdirectory to the template. * - * @var string + * @var string|null */ protected $_templatePath; /** * The template file to render. * - * @var string + * @var string|null */ protected $_template; @@ -62,28 +62,28 @@ class ViewBuilder implements JsonSerializable, Serializable /** * The layout name to render. * - * @var string + * @var string|null|false */ protected $_layout; /** * Whether or not autoLayout should be enabled. * - * @var bool + * @var bool|null */ protected $_autoLayout; /** * The layout path to build the view with. * - * @var string + * @var string|null */ protected $_layoutPath; /** * The view variables to use * - * @var string + * @var string|null */ protected $_name; @@ -92,7 +92,7 @@ class ViewBuilder implements JsonSerializable, Serializable * Can either use plugin notation, a short name * or a fully namespaced classname. * - * @var string + * @var string|null */ protected $_className; @@ -216,7 +216,7 @@ public function enableAutoLayout($enable = true) */ public function isAutoLayoutEnabled() { - return $this->_autoLayout; + return $this->_autoLayout !== null ? $this->_autoLayout : true; } /**