1. Home
  2. Docs
  3. PHP Style Guide
  4. Code Indenting

Code Indenting

Use Allman style indenting. With the exception of Class declarations, braces are always placed on a line by themselves, and indented at the same level as the control statement that “owns” them.

INCORRECT:

CORRECT:

Was this article helpful to you? Yes No

How can we help?