
Feature request - Move to PSR coding standards?
Reported by dleffler | October 3rd, 2013 @ 02:02 PM
We should probably move to format our code according to FIG PSR coding standards (PSR-0, PSR-1, & PSR-2) Though we follow many of them, there are still a number we do NOT (esp. my coding) e.g., Opening braces for classes and methods MUST go on the next line, and closing braces MUST go on the next line after the body.
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1...
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2...
Comments and changes to this ticket
-
dleffler October 31st, 2013 @ 04:27 PM
FWIW, our recommended IDE, PHPStorm can be auto-set to use PSR standards in the Code Style by bringing up Configuration Settings, selecting Code Style under Project Settings, then open up PHP and click on the 'Set from...' link in the upper right selecting 'Predefined Style' 'PSR1/PSR2'
-
-
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Bug Tracker for Exponent CMS