Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSR 12 requirement #772

Open
wants to merge 1 commit into
base: 7.dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/development/guidelines/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ lang: php

# General Style and Syntax

NOTE: **Note:** All PHP code submitted to ExpressionEngine repository needs to conform to [PSR-12 coding standards](https://expressionengine.com/blog/expressionengine-adopts-psr-12).

## File Format

Files should be saved with Unicode (UTF-8) encoding. The BOM should _not_ be used. Unlike UTF-16 and UTF-32, there's no byte order to indicate in a UTF-8 encoded file, and the BOM can have a negative side effect in PHP of sending output, preventing the application from being able to set its own headers. Unix line endings should be used (LF).
Expand Down Expand Up @@ -183,7 +185,7 @@ CORRECT:

## TRUE, FALSE, and NULL

`TRUE`, `FALSE`, and `NULL` keywords should always be fully uppercase.
`TRUE`, `FALSE`, and `NULL` keywords should always be lowecase.

INCORRECT:

Expand Down