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

Fixing Coding Standards #1

Open
ismo-conguairta opened this issue May 5, 2013 · 0 comments
Open

Fixing Coding Standards #1

ismo-conguairta opened this issue May 5, 2013 · 0 comments
Assignees

Comments

@ismo-conguairta
Copy link
Contributor

The code have to follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents written by the PHP Framework Interop Group.

When various authors collaborate across multiple projects, it helps to have one set of guidelines to be used among all those projects.

@ghost ghost assigned ismo-conguairta May 5, 2013
ismo-conguairta added a commit that referenced this issue May 5, 2013
The following issues are fixed:
- indentation [PSR-2] Code must use 4 spaces for indenting, not tabs.
- trailing_spaces [PSR-2] Remove trailing whitespace at the end of
  lines.
- short_tag [PSR-1] PHP code must use the long tags or the short-echo
  tags; it must not use the other tag variations.
- braces [PSR-2] Opening braces for classes, interfaces, traits and
  methods must go on the next line, and closing braces must go on the
  next line after the body. Opening braces for control structures must
  go on the same line, and closing braces must go on the next line after
  the body.
- php_closing_tag [PSR-2] The closing ?> tag MUST be omitted from files
  containing only PHP.
- eof_ending [PSR-2] A file must always end with an empty line feed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant