I'm looking for an equivalent of PerlCritic for PHP. PerlCritc is a static source code analyzer that qritiques code and warns about everything from unused variables, to unsafe ways to handle data to almost anything.
Is there such a thing for PHP that could (preferably) be run outside of an IDE, so that source code analysis could be automated?