We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d0b7a commit 820962fCopy full SHA for 820962f
src/CI4Twig/Twig.php
@@ -215,10 +215,7 @@ protected function addFilters()
215
foreach ($this->filters as $filter) {
216
if (function_exists($filter)) {
217
$this->twig->addFilter(
218
- new TwigFilter(
219
- $filter,
220
- $filter
221
- )
+ new TwigFilter($filter, $filter)
222
);
223
}
224
@@ -237,10 +234,7 @@ protected function addFunctions()
237
234
foreach ($this->functions_asis as $function) {
238
235
if (function_exists($function)) {
239
236
$this->twig->addFunction(
240
- new TwigFunction(
241
- $function,
242
- $function
243
+ new TwigFunction($function, $function)
244
245
246
0 commit comments