Paste your PHP code, and the tool re-indents it and normalizes bracket placement toward PSR conventions.
The formatter follows PSR-2 style guidelines including 4-space indentation, opening braces on new lines for classes, and consistent spacing.
The tool works best with pure PHP code. For mixed PHP/HTML, it will format PHP blocks but may not perfectly handle HTML context.
This is a formatter, not a validator. It improves code structure but doesn't check for syntax errors. Use PHP's built-in syntax checker for validation.