checkRequirements [line 42]
array checkRequirements(
)
Exits if the minimum requirements of PHP_CodSniffer are not met.
getCommandLineValues [line 103]
array getCommandLineValues(
)
Process the command line arguments and returns the values.
getDefaults [line 63]
Get a list of default values for all possible command line arguments.
printErrorReport [line 350]
int printErrorReport(
PHP_CodeSniffer
$phpcs, string
$report, bool
$showWarnings)
Prints the error report.
- Return: The number of error and warning messages shown.
- Access: public
Parameters:
string
$report
—
The type of report to print.
bool
$showWarnings
—
TRUE if warnings should also be printed.
printInstalledStandards [line 451]
void printInstalledStandards(
)
Prints out a list of installed coding standards.
printUsage [line 417]
Prints out the usage information for this script.
process [line 294]
int process(
[array
$values = array()])
Runs PHP_CodeSniffer over files are directories.
Parameters:
array
$values
—
An array of values determined from CLI args.
processLongArgument [line 184]
array processLongArgument(
string
$arg, int
$pos, array
$values)
Processes a long (--example) command line argument.
Parameters:
string
$arg
—
The command line argument.
int
$pos
—
The position of the argument on the command line.
array
$values
—
An array of values determined from CLI args.
processShortArgument [line 141]
array processShortArgument(
string
$arg, array
$values)
Processes a sort (-e) command line argument.
Parameters:
string
$arg
—
The command line argument.
array
$values
—
An array of values determined from CLI args.
processUnknownArgument [line 263]
array processUnknownArgument(
string
$arg, int
$pos, array
$values)
Processes an unknown command line argument.
Assumes all unknown arguments are files and folders to check.
Parameters:
string
$arg
—
The command line argument.
int
$pos
—
The position of the argument on the command line.
array
$values
—
An array of values determined from CLI args.
validateStandard [line 384]
string validateStandard(
string
$standard)
Convert the passed standard into a valid standard.
Checks things like default values and case.
Parameters:
string
$standard
—
The standard to validate.