Manual:CheckSyntax.php

This command-line maintenance script checks source files for syntax errors and common coding mistakes, such as byte order marks, pointless PHP closing tags (?>) at the end of file, whitespace before the opening tag (--with-extensions: also scan /extensions/ directory.
 * --path : check the given file or directory.
 * --list-file : check only files or directories listed in the given text file.
 * --modified: check only files modified in the current working copy (requires that the script is run from a Subversion checkout and that SVN command-line client is present. Use this option to quickly check your changes before committing them to the repository.