Skip to content

Commit

Permalink
Removed the highlighting of minified queries
Browse files Browse the repository at this point in the history
The minified queries are not valid SQL anymore, so highlighting them with
the SqlFormatter does not make sense.
Closes #146
  • Loading branch information
stof committed Jan 12, 2013
1 parent 8fe9d1b commit 1c68f29
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Twig/DoctrineExtension.php
Expand Up @@ -233,9 +233,6 @@ public function minifyQuery($query)
$result = $this->composeMiniQuery($query, $keywords, $required); $result = $this->composeMiniQuery($query, $keywords, $required);
} }


// Highlight the minified query
$result = \SqlFormatter::highlight($result);

// Remove unneeded boilerplate HTML // Remove unneeded boilerplate HTML
$result = str_replace(array("<pre style='background:white;'", "</pre>"), array("<span", "</span>"), $result); $result = str_replace(array("<pre style='background:white;'", "</pre>"), array("<span", "</span>"), $result);


Expand Down

0 comments on commit 1c68f29

Please sign in to comment.