Skip to content

Commit db710c4

Browse files
committed
Removed return statement
1 parent bc673f3 commit db710c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/expression_language/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This method has 3 arguments:
3535
3636
$language = new ExpressionLanguage();
3737
$language->register('lowercase', function ($str) {
38-
return sprintf('$result = (is_string(%1$s)) ? strtolower(%1$s) : %1$s; return $result;', $str);
38+
is_string(%1$s) ? strtolower(%1$s) : %1$s;
3939
}, function ($arguments, $str) {
4040
if (!is_string($str)) {
4141
return $str;

0 commit comments

Comments
 (0)