X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=6420dc74c59e82526052fd6c26cbd1a2d1d79106;hb=3167a7162ce4a61c4ddb84e1ccfadf1acfea5d41;hp=8ce342020f1c714b2cd5a34671971219c2094fe8;hpb=d7e568139f54286e38cb966b3e2ee4e1c8af5e2c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 8ce342020f..6420dc74c5 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -170,13 +170,13 @@ class TemplateParser { } return LightnCandy::compile( $code, - array( + [ // Do not add more flags here without discussion. // If you do add more flags, be sure to update unit tests as well. 'flags' => LightnCandy::FLAG_ERROR_EXCEPTION, 'basedir' => $this->templateDir, 'fileext' => '.mustache', - ) + ] ); } @@ -197,7 +197,7 @@ class TemplateParser { * @param array $scopes * @return string */ - public function processTemplate( $templateName, $args, array $scopes = array() ) { + public function processTemplate( $templateName, $args, array $scopes = [] ) { $template = $this->getTemplate( $templateName ); return call_user_func( $template, $args, $scopes ); }