From eabcf1c7de8ab48f4606bf165dadc0d4d435e7a0 Mon Sep 17 00:00:00 2001 From: dev-meghraj Date: Tue, 24 Dec 2013 02:44:32 +0530 Subject: [PATCH] minor typos --- extensions/yii/twig/TwigSimpleFileLoader.php | 2 +- extensions/yii/twig/ViewRenderer.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/yii/twig/TwigSimpleFileLoader.php b/extensions/yii/twig/TwigSimpleFileLoader.php index af7115b..b5002dd 100644 --- a/extensions/yii/twig/TwigSimpleFileLoader.php +++ b/extensions/yii/twig/TwigSimpleFileLoader.php @@ -12,7 +12,7 @@ class TwigSimpleFileLoader implements \Twig_LoaderInterface { /** * Path to directory where all file exists - * @param $view string + * @var string */ private $dir; diff --git a/extensions/yii/twig/ViewRenderer.php b/extensions/yii/twig/ViewRenderer.php index 09367ce..e63a858 100644 --- a/extensions/yii/twig/ViewRenderer.php +++ b/extensions/yii/twig/ViewRenderer.php @@ -39,7 +39,7 @@ class ViewRenderer extends BaseViewRenderer * Example: array('html'=>'\yii\helpers\Html') * Than in template: {{ html.link('Login', 'site/login') }} */ - public $globals = array(); + public $globals = []; /** * @var array Custom functions @@ -47,7 +47,7 @@ class ViewRenderer extends BaseViewRenderer * Example: array('rot13'=>'str_rot13', 'link'=>'\yii\helpers\Html::link') * Than in template: {{ rot13('test') }} or {{ link('Login', 'site/login') }} */ - public $functions = array(); + public $functions = []; /** * @var array Custom filters @@ -55,13 +55,13 @@ class ViewRenderer extends BaseViewRenderer * Example: array('rot13'=>'str_rot13', 'jsonEncode'=>'\yii\helpers\Json::encode') * Then in template: {{ 'test'|rot13 }} or {{ model|jsonEncode }} */ - public $filters = array(); + public $filters = []; /** * @var array Custom extensions * Example: array('Twig_Extension_Sandbox', 'Twig_Extension_Text') */ - public $extensions = array(); + public $extensions = []; /** * @var array Twig lexer options @@ -73,7 +73,7 @@ class ViewRenderer extends BaseViewRenderer * 'tag_variable' => array('{$', '}') * ) */ - public $lexerOptions = array(); + public $lexerOptions = []; /** * @var \Twig_Environment