projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d895185
)
fixed CS
author
Julien Brochet
<mewt.fr@gmail.com>
Sat, 14 Jan 2012 14:56:01 +0000 (15:56 +0100)
committer
Julien Brochet
<mewt.fr@gmail.com>
Sat, 14 Jan 2012 14:56:01 +0000 (15:56 +0100)
lib/Twig/Extension/Core.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Extension/Core.php
b/lib/Twig/Extension/Core.php
index
886539e
..
20cf474
100644
(file)
--- a/
lib/Twig/Extension/Core.php
+++ b/
lib/Twig/Extension/Core.php
@@
-558,9
+558,9
@@
function _twig_default_filter($value, $default = '')
{
if (twig_test_empty($value)) {
return $default;
- } else {
- return $value;
}
+
+ return $value;
}
/**
@@
-746,11
+746,9
@@
function twig_escape_filter_is_safe(Twig_Node $filterArgs)
foreach ($filterArgs as $arg) {
if ($arg instanceof Twig_Node_Expression_Constant) {
return array($arg->getAttribute('value'));
- } else {
- return array();
}
- break;
+ return array();
}
return array('html');