CodeIgniter for PHP CodeSniffer gets better

Just a quick note, my PHP CodeSniffer standard for CodeIgniter improves gradually, since I originally mentioned it a month ago, the following improvements have been made to the repo:

  1. Improved indentation checks in switch statements, works with tabs now
  2. Correct file and class naming when creating libraries (CodeIgniter expects capitalized file names for libraries)
  3. Support for accepting a range of short (less than 4 characters) variable names. Common and meaningful names such as $sql, $id, $ret etc.
  4. (kind of a hack) Accept the public function name _init(). Only because it’s a requirement when using GasOrm.

So, go update your installations, all 3 of you 🙂

/Erik

Leave a comment

Your email address will not be published. Required fields are marked *