Skip to content

Commit

Permalink
Removed return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfraile committed Jul 3, 2014
1 parent bc673f3 commit db710c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/expression_language/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This method has 3 arguments:
$language = new ExpressionLanguage();
$language->register('lowercase', function ($str) {
return sprintf('$result = (is_string(%1$s)) ? strtolower(%1$s) : %1$s; return $result;', $str);
is_string(%1$s) ? strtolower(%1$s) : %1$s;
}, function ($arguments, $str) {
if (!is_string($str)) {
return $str;
Expand Down

0 comments on commit db710c4

Please sign in to comment.