Source Code Formatter
From Delphi for PHP Documentation Wiki
Use the Source Code Formatter to format your PHP source code using a defined set of options including indents, line breaks and spacing. Source code formatting helps make your code look cleaner and also allows you to apply a consistent formatting style if you have multiple developers working on the same source code file when they normally format their code in their own different styles.
To format your source code using the Source Code Formatter
- Select Tools | Source Formatter from the main menu or use the shortcut key Ctrl+D
- Confirm that you want to format your source code by clicking OK in the Confirm dialog box
Below is a before and after example of source code formatting.
Before:
After:





