In a previous post, I described how to setup Hudson with Phing and PHPUnit for a simple PHP build process.
Adding PHP CodeSniffer to Build Results
Now let's expand on this a bit by adding PHP CodeSniffer (PHPCS).
First, assuming you're still working on Ubuntu, install PHPCS :
$ sudo pear install PHP_CodeSniffer
Add the Checkstyle to Hudson (Manage Hudson => Manage Plugins => Available).