PHP Code Standards: Difference between revisions

From PM Wiki
Jump to navigation Jump to search
m (Aaron moved page Code Standards to PHP Code Standards without leaving a redirect)
(No difference)

Revision as of 17:01, 26 October 2022

Variable Naming Conventions

Local Variables

Local variable names should all be lower case:

email

If the local variable name is made up of multiple words, use snake case:

email_address

Functions

Function names should all be lowercase:

update

If the function name is made up of multiple words, use snake case:

update_by_id

Classes

Class names should all be capitalized:

Vertical

If the class name is made up of multiple words, use Pascal case:

VerticalGroup