diff options
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php')
-rw-r--r-- | vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php index 08e1a473b..bfa3f58ec 100644 --- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php +++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php @@ -39,8 +39,8 @@ class Smarty_Internal_Method_Literals * @api Smarty::addLiterals() * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param array|string $literals literal or list of literals - * to add + * @param array|string $literals literal or list of literals + * to addto add * * @return \Smarty|\Smarty_Internal_Template * @throws \SmartyException @@ -59,8 +59,8 @@ class Smarty_Internal_Method_Literals * @api Smarty::setLiterals() * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param array|string $literals literal or list of literals - * to set + * @param array|string $literals literal or list of literals + * to setto set * * @return \Smarty|\Smarty_Internal_Template * @throws \SmartyException @@ -80,7 +80,7 @@ class Smarty_Internal_Method_Literals * Smarty::$literals array gets filled with identical key values * * @param \Smarty $smarty - * @param array $literals + * @param array $literals * * @throws \SmartyException */ @@ -90,9 +90,11 @@ class Smarty_Internal_Method_Literals $error = isset($literals[ $smarty->left_delimiter ]) ? array($smarty->left_delimiter) : array(); $error = isset($literals[ $smarty->right_delimiter ]) ? $error[] = $smarty->right_delimiter : $error; if (!empty($error)) { - throw new SmartyException('User defined literal(s) "' . $error . - '" may not be identical with left or right delimiter'); + throw new SmartyException( + 'User defined literal(s) "' . $error . + '" may not be identical with left or right delimiter' + ); } $smarty->literals = array_merge((array)$smarty->literals, (array)$literals); } -}
\ No newline at end of file +} |