src/Handlers/ExceptionHandler.php
private function renderSQL($sql, $line)
    {
        try {
            $sql = trim($sql);
            $count = count(explode(PHP_EOL, $sql));
            $code  = '<code>' . SqlFormatter::highlight($sql) . '</code>';
            return $this->wrapLineNumbers($count, $code, $line);
        }
        catch(Throwable $e) { // Error or Exception (executed only in PHP 7, will not match in PHP 5)
            return null;
        }
        catch(Exception $e) { // Once PHP 5 support is no longer needed, this block can be removed.
            return null;
        }
    }
private function renderSQL($sql, $line)
    {
        try {
            $sql = trim($sql);
            $count = count(explode(PHP_EOL, $sql));
            $code  = '<code>' . SqlFormatter::highlight($sql) . '</code>';
            return $this->wrapLineNumbers($count, $code, $line);
        }
        catch(Throwable $e) { // Error or Exception (executed only in PHP 7, will not match in PHP 5)
            return null;
        }
        catch(Exception $e) { // Once PHP 5 support is no longer needed, this block can be removed.
            return null;
        }
    }
private function renderSQL ( $ sql , $ line ) { try { $ sql = trim ( $ sql ) ; $ count = count ( explode ( PHP_EOL , $ sql ) ) ; $ code = '<code>' . SqlFormatter :: highlight ( $ sql ) . '</code>' ; return $ this -> wrapLineNumbers ( $ count , $ code , $ line ) ; } catch ( Throwable $ e ) { // Error or Exception (executed only in PHP 7, will not match in PHP 5) return null ; } catch ( Exception $ e ) { // Once PHP 5 support is no longer needed, this block can be removed. return null ; } }
Render SQL.

@param string $sql
@param int $line
@return string
Render SQL .