Skip to main content

Module formatting

Module formatting 

Source

Functionsยง

format_document
Format source with the best available PHP formatter. Returns None if no formatter is installed or if the source was unchanged.
format_range
Format only the lines covered by range. Extracts those lines, formats the snippet, then returns an edit targeting just that range.