Skip to content

Commit

Permalink
Formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
iBiryukov committed Dec 27, 2013
1 parent 671edc6 commit 79dbe12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/DoctrineExtension.php
Expand Up @@ -291,7 +291,7 @@ public static function escapeFunction($parameter)
public function replaceQueryParameters($query, $parameters, $highlight = true)
{
$i = 0;

$result = preg_replace_callback(
'/\?|((?<!:):[a-z0-9_]+)/i',
function ($matches) use ($parameters, &$i) {
Expand All @@ -309,7 +309,7 @@ function ($matches) use ($parameters, &$i) {
$query
);

if (true === $highlight) {
if ($highlight) {
$result = \SqlFormatter::highlight($result);
$result = str_replace(array("<pre ", "</pre>"), array("<span ", "</span>"), $result);
}
Expand Down

0 comments on commit 79dbe12

Please sign in to comment.