| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Check syntax of all PHP files in MediaWiki This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| File Size: | 392 lines (11 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file maintenance/Maintenance.php |
CheckSyntax:: (14 methods):
__construct()
getDbType()
execute()
buildFileList()
getGitModifiedFiles()
isSuitableFile()
addPath()
addFileOrDir()
addDirectoryContent()
checkFileWithParsekit()
checkFileWithCli()
checkForMistakes()
checkRegex()
checkEvilToken()
Class: CheckSyntax - X-Ref
Maintenance script to check syntax of all PHP files in MediaWiki.| __construct() X-Ref |
| No description |
| getDbType() X-Ref |
| No description |
| execute() X-Ref |
| No description |
| buildFileList() X-Ref |
| Build the list of files we'll check for syntax errors |
| getGitModifiedFiles( $path ) X-Ref |
| Returns a list of tracked files in a Git work tree differing from the master branch. param: string $path Path to the repository return: array Resulting list of changed files |
| isSuitableFile( $file ) X-Ref |
| Returns true if $file is of a type we can check param: string $file return: bool |
| addPath( $path ) X-Ref |
| Add given path to file list, searching it in include path if needed param: string $path return: bool |
| addFileOrDir( $path ) X-Ref |
| Add given file to file list, or, if it's a directory, add its content param: string $path return: bool |
| addDirectoryContent( $dir ) X-Ref |
| Add all suitable files in given directory or its subdirectories to the file list param: string $dir Directory to process |
| checkFileWithParsekit( $file ) X-Ref |
| Check a file for syntax errors using Parsekit. Shamelessly stolen from tools/lint.php by TimStarling param: string $file Path to a file to check for syntax errors return: bool |
| checkFileWithCli( $file ) X-Ref |
| Check a file for syntax errors using php -l param: string $file Path to a file to check for syntax errors return: bool |
| checkForMistakes( $file ) X-Ref |
| Check a file for non-fatal coding errors, such as byte-order marks in the beginning or pointless ?> closing tags at the end. param: string $file String Path to a file to check for errors |
| checkRegex( $file, $text, $regex, $desc ) X-Ref |
| No description |
| checkEvilToken( $file, $tokens, $evilToken, $desc ) X-Ref |
| No description |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |