make type hints easier to read

This commit is contained in:
Dennis Eichhorn 2020-06-08 22:43:28 +02:00
parent 2ced0c8325
commit 1b2a9b9e3c
3 changed files with 3 additions and 5 deletions

View File

@ -37,7 +37,7 @@ class BaseView extends View
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $id = ''; private string $id = '';
/** /**
* {@inheritdoc} * {@inheritdoc}

View File

@ -13,7 +13,7 @@
name="<?= $this->renderName(); ?>" name="<?= $this->renderName(); ?>"
form="<?= $this->renderForm(); ?>" form="<?= $this->renderForm(); ?>"
data-tpl-text="<?= $this->renderTplText(); ?>" data-tpl-text="<?= $this->renderTplText(); ?>"
data-tpl-value="<?= $this->renderTplValue(); ?>"><?= $this->renderPlain(); ?></textarea> data-tpl-value="<?= $this->renderTplValue(); ?>"><?= \str_replace("\n", '&#13;&#10;', $this->renderPlain()); ?></textarea>
<input type="hidden" id="<?= $this->renderId(); ?>-parsed"> <input type="hidden" id="<?= $this->renderId(); ?>-parsed">
</div> </div>

View File

@ -14,9 +14,7 @@ declare(strict_types=1);
use phpOMS\Uri\UriFactory; use phpOMS\Uri\UriFactory;
/** /** @var \phpOMS\Views\View $this */
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="row"> <div class="row">