Skip to content

Commit 40a15f3

Browse files
committed
Merge pull request #75 from jdeniau/master
Fixes #74
2 parents c0d6d66 + 9e9beaa commit 40a15f3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Ladybug/Renderer/Twig/Extension/BaseExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function getName()
4040
public function getFunctions()
4141
{
4242
return array(
43-
'render_type' => new \Twig_SimpleFunction(
44-
'renderTypeFunction',
43+
new \Twig_SimpleFunction(
44+
'render_type',
4545
array($this, 'renderTypeFunction'),
4646
array('needs_environment' => true, 'is_safe' => array('html'))
4747
)
@@ -56,8 +56,8 @@ public function getFunctions()
5656
public function getFilters()
5757
{
5858
return array(
59-
'repeat' => new \Twig_SimpleFilter('getRepeat', array($this, 'getRepeat'), array('is_safe' => array('html'))),
60-
'pad' => new \Twig_SimpleFilter('getPad', array($this, 'getPad')),
59+
new \Twig_SimpleFilter('repeat', array($this, 'getRepeat'), array('is_safe' => array('html'))),
60+
new \Twig_SimpleFilter('pad', array($this, 'getPad')),
6161
);
6262
}
6363

src/Ladybug/Renderer/Twig/Extension/ConsoleExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getName()
3232
public function getFilters()
3333
{
3434
return array_merge(parent::getFilters(), array(
35-
'tags' => new \Twig_SimpleFilter('getTags', array($this, 'getTags'), array('is_safe' => array('html'))),
35+
new \Twig_SimpleFilter('tags', array($this, 'getTags'), array('is_safe' => array('html'))),
3636
));
3737
}
3838

@@ -44,5 +44,4 @@ public function getTags($text)
4444

4545
return $textTags;
4646
}
47-
4847
}

0 commit comments

Comments
 (0)