Classes/Console/Database/Schema/SchemaUpdateResultRenderer.php
protected function getTruncatedQueries(array $queries, int $truncateAt): array
    {
        foreach ($queries as &$query) {
            $truncatedLines = [];
            foreach (explode(chr(10), $query) as $line) {
                $truncatedLines[] = wordwrap($line, $truncateAt, chr(10), true);
            }
            $query = implode(chr(10), $truncatedLines);
        }

        return $queries;
    }
protected function getTruncatedQueries(array $queries, int $truncateAt): array
    {
        foreach ($queries as &$query) {
            $truncatedLines = [];
            foreach (explode(chr(10), $query) as $line) {
                $truncatedLines[] = wordwrap($line, $truncateAt, chr(10), true);
            }
            $query = implode(chr(10), $truncatedLines);
        }

        return $queries;
    }
Truncate (wrap) query strings at a certain number of characters

@param array $queries
@param int $truncateAt
@return array