Polishing Code with PHP CodeSniffer

Do you think that white space matters? Does your boss or your client insist on "TRUE" instead of "true", or vice versa? Are you contributing to an open-source project that has developed its own coding standards?

If any of these apply, and if you write PHP code, then PHP CodeSniffer can help keep you on track by telling you where your code does not match the standard. Recent versions of this tool can automatically fix many violations.

I will use examples based on Drupal and WordPress.

Experience level: 
Session Time Slot(s): 
Sep 11 2015 - 11:00am-Sep 11 2015 - 11:50am
Allowed Types: 
Sessions Topics: 
Speaker Bio(s): 
Benji Fisher built his first web page in 1996, when he was teaching mathematics. After many years of amateur site building, he became a full-time Drupal developer in 2012, and now works for NorthPoint Digital. Benji is a vim guru and believes in using tools like git, drush, and ansible to make work more enjoyable and productive.


Having had processes like this set up in the past I can say this a great thing to have on any project, especially for Drupal which has such strict coding standards.