File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use Doctrine \SqlFormatter \SqlFormatter ;
6+ use Doctrine \SqlFormatter \Tokenizer ;
7+
8+ require_once __DIR__ . '/../vendor/autoload.php ' ;
9+
510if (PHP_SAPI !== 'cli ' ) :?>
611 <p>
712 Run this php script from the command line to see CLI syntax highlighting and
2328 $ sql = stream_get_contents ($ fp );
2429}
2530
26- require_once __DIR__ . '/../vendor/autoload.php ' ;
27-
28- use Doctrine \SqlFormatter \SqlFormatter ;
29- use Doctrine \SqlFormatter \Tokenizer ;
30-
3131assert ($ sql !== false );
3232
3333echo (new SqlFormatter ())->format ($ sql );
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- require_once __DIR__ . '/../vendor/autoload.php ' ;
6-
75use Doctrine \SqlFormatter \NullHighlighter ;
86use Doctrine \SqlFormatter \SqlFormatter ;
97use Doctrine \SqlFormatter \Tokenizer ;
108
9+ require_once __DIR__ . '/../vendor/autoload.php ' ;
10+
1111$ formatter = new SqlFormatter ();
1212
1313// Example statements for formatting and highlighting
You can’t perform that action at this time.
0 commit comments