Commit eabcf1c7 by dev-meghraj

minor typos

parent 9ea15107
...@@ -12,7 +12,7 @@ class TwigSimpleFileLoader implements \Twig_LoaderInterface { ...@@ -12,7 +12,7 @@ class TwigSimpleFileLoader implements \Twig_LoaderInterface {
/** /**
* Path to directory where all file exists * Path to directory where all file exists
* @param $view string * @var string
*/ */
private $dir; private $dir;
......
...@@ -39,7 +39,7 @@ class ViewRenderer extends BaseViewRenderer ...@@ -39,7 +39,7 @@ class ViewRenderer extends BaseViewRenderer
* Example: array('html'=>'\yii\helpers\Html') * Example: array('html'=>'\yii\helpers\Html')
* Than in template: {{ html.link('Login', 'site/login') }} * Than in template: {{ html.link('Login', 'site/login') }}
*/ */
public $globals = array(); public $globals = [];
/** /**
* @var array Custom functions * @var array Custom functions
...@@ -47,7 +47,7 @@ class ViewRenderer extends BaseViewRenderer ...@@ -47,7 +47,7 @@ class ViewRenderer extends BaseViewRenderer
* Example: array('rot13'=>'str_rot13', 'link'=>'\yii\helpers\Html::link') * Example: array('rot13'=>'str_rot13', 'link'=>'\yii\helpers\Html::link')
* Than in template: {{ rot13('test') }} or {{ link('Login', 'site/login') }} * Than in template: {{ rot13('test') }} or {{ link('Login', 'site/login') }}
*/ */
public $functions = array(); public $functions = [];
/** /**
* @var array Custom filters * @var array Custom filters
...@@ -55,13 +55,13 @@ class ViewRenderer extends BaseViewRenderer ...@@ -55,13 +55,13 @@ class ViewRenderer extends BaseViewRenderer
* Example: array('rot13'=>'str_rot13', 'jsonEncode'=>'\yii\helpers\Json::encode') * Example: array('rot13'=>'str_rot13', 'jsonEncode'=>'\yii\helpers\Json::encode')
* Then in template: {{ 'test'|rot13 }} or {{ model|jsonEncode }} * Then in template: {{ 'test'|rot13 }} or {{ model|jsonEncode }}
*/ */
public $filters = array(); public $filters = [];
/** /**
* @var array Custom extensions * @var array Custom extensions
* Example: array('Twig_Extension_Sandbox', 'Twig_Extension_Text') * Example: array('Twig_Extension_Sandbox', 'Twig_Extension_Text')
*/ */
public $extensions = array(); public $extensions = [];
/** /**
* @var array Twig lexer options * @var array Twig lexer options
...@@ -73,7 +73,7 @@ class ViewRenderer extends BaseViewRenderer ...@@ -73,7 +73,7 @@ class ViewRenderer extends BaseViewRenderer
* 'tag_variable' => array('{$', '}') * 'tag_variable' => array('{$', '}')
* ) * )
*/ */
public $lexerOptions = array(); public $lexerOptions = [];
/** /**
* @var \Twig_Environment * @var \Twig_Environment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment