<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 08 Jan 2009 03:22:45 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SaniSoft Blog: Code sniffs for CakePHP and then some more]]></title>
      <guid>http://www.phpdeveloper.org/news/10546</guid>
      <link>http://www.phpdeveloper.org/news/10546</link>
      <description><![CDATA[<p>
On the SaniSoft blog <i>Tarique Sani</i> has <a href="http://www.sanisoft.com/blog/2008/07/04/code-sniffs-for-cakephp-and-then-some-more/">posted about</a> (and made available for download) some code sniffs for the CakePHP framework. Some problems arose with some of the naming that the framework uses, but with some "tinkering around"...
</p>
<blockquote>
[It became] apparent that I had to have my own set of Cake sniffs to manage this but a separate standard just for this seemed an over kill and the simplicity of code made it kind of fun to add more standards which I liked but were in different set of sniffs.
</blockquote>
<p>
You can grab the whole list of sniffs from <a href="http://www.sanisoft.com/downloads/cakephp_sniffs/">their downloads</a>. They implemented them as a pre-commit hook on their SVN server even so that developers could not violate the coding standards when they submit their code.
</p>]]></description>
      <pubDate>Fri, 04 Jul 2008 09:32:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Priebsch's Blog: Custom Coding Standards with PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/10541</guid>
      <link>http://www.phpdeveloper.org/news/10541</link>
      <description><![CDATA[<p>
<i>Stefan Priebsch</i> <a href="http://inside.e-novative.de/archives/124-Custom-Coding-Standards-with-PHP_CodeSniffer.html">recently posted</a> about his struggles with creating a custom coding started with the <a href="http://inside.e-novative.de/exit.php?url_id=1295&entry_id=124">PHP_CodeSniffer</a> package:
</p>
<blockquote>
In CodeSniffer, a coding standard is basically represented by an empty class that extends PHP_CodeSniffer_Standards_CodingStandard. I could not get the CodeSniffer to find my coding standard, though, and found the documentation lacking about where to put it, how to name it, and how to refer to it in the --standard switch.
</blockquote>
<p>
After an email to <a href="http://inside.e-novative.de/exit.php?url_id=1298&entry_id=124">Greg Sherwood</a> (developer of the package</a>) <i>Stefan</i> figured out his issue and has <a href="http://inside.e-novative.de/archives/124-Custom-Coding-Standards-with-PHP_CodeSniffer.html">shared the solution</a> in this post (step by step).
</p>]]></description>
      <pubDate>Thu, 03 Jul 2008 12:02:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Daniel O'Connor's Blog:  How to customise PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/10411</guid>
      <link>http://www.phpdeveloper.org/news/10411</link>
      <description><![CDATA[<p>
<i>Daniel O'Connor</i> has <a href="http://clockwerx.blogspot.com/2008/06/how-to-customise-phpcodesniffer.html">posted a quick guide</a> to customizing your installation of the <a href="http://pear.php.net/PHP_CodeSniffer">PHP_CodeSniffer</a> PEAR package to match the coding standard you'd like.
</p>
<blockquote>
<a href="http://pear.php.net/PHP_CodeSniffer">PHP_CodeSniffer</a> is a <a href="http://pear.php.net">PEAR</a> package which detects potential coding problems and enforces your style guide. The default is the PEAR coding standard, but you can easily change that.
</blockquote>
<p>
His method requires the creation of a custom "FooCodingStandard.php" (named whatever you'd like, of course) that contains a class/method defining the "sniffs" you'd like to use for your standard. Use "pfm" to make it into a package and install it to your system - you'll be all set.
</p>]]></description>
      <pubDate>Fri, 13 Jun 2008 11:11:36 -0500</pubDate>
    </item>
  </channel>
</rss>
