Skip to content

A coding style based on PSR-2 with Allman style braces in control structures.

Notifications You must be signed in to change notification settings

giant-robot/php-codesniffer-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GiantRobot PHP CodeSniffer Standard

A coding style based on PSR-2 with Allman style braces in control structures.

The resulting style rules for control structures are as follows:

  • There MUST be one space after the control structure keyword
  • There MUST NOT be a space after the opening parenthesis
  • There MUST NOT be a space before the closing parenthesis
  • The opening brace MUST be on the next line after the closing parenthesis
  • The structure body MUST be indented once
  • The closing brace MUST be on the next line after the body

About

A coding style based on PSR-2 with Allman style braces in control structures.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages