Skip to content

Commit

Permalink
A few quick formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
othyn committed Apr 8, 2021
1 parent 531ed09 commit acb59a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SqlFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* SQL Formatter is a collection of utilities for debugging SQL queries.
* It includes methods for formatting, syntax highlighting, removing comments, etc.
*
* @link http://github.com/jdorn/sql-formatter
* @see http://github.com/jdorn/sql-formatter
*/

namespace Doctrine\SqlFormatter;
Expand Down Expand Up @@ -36,7 +36,7 @@ final class SqlFormatter

public function __construct(?Highlighter $highlighter = null)
{
$this->tokenizer = new Tokenizer();
$this->tokenizer = new Tokenizer();
$this->highlighter = $highlighter ?? (PHP_SAPI === 'cli' ? new CliHighlighter() : new HtmlHighlighter());
}

Expand Down

0 comments on commit acb59a3

Please sign in to comment.