BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Sniffs\Sniff Interface Reference

Inherited by MediaWiki\Sniffs\AlternativeSyntax\AlternativeSyntaxSniff, MediaWiki\Sniffs\AlternativeSyntax\LeadingZeroInFloatSniff, MediaWiki\Sniffs\AlternativeSyntax\PHP7UnicodeSyntaxSniff, MediaWiki\Sniffs\AlternativeSyntax\ShortCastSyntaxSniff, MediaWiki\Sniffs\Classes\UnusedUseStatementSniff, MediaWiki\Sniffs\Commenting\FunctionCommentSniff, MediaWiki\Sniffs\ControlStructures\AssignmentInControlStructuresSniff, MediaWiki\Sniffs\ControlStructures\IfElseStructureSniff, MediaWiki\Sniffs\ExtraCharacters\ParenthesesAroundKeywordSniff, MediaWiki\Sniffs\Files\ClassMatchesFilenameSniff, MediaWiki\Sniffs\Files\OneClassPerFileSniff, MediaWiki\Sniffs\NamingConventions\LowerCamelFunctionsNameSniff, MediaWiki\Sniffs\NamingConventions\PrefixedGlobalFunctionsSniff, MediaWiki\Sniffs\NamingConventions\ValidGlobalNameSniff, MediaWiki\Sniffs\Usage\DbrQueryUsageSniff, MediaWiki\Sniffs\Usage\DeprecatedConstantUsageSniff, MediaWiki\Sniffs\Usage\DirUsageSniff, MediaWiki\Sniffs\Usage\ExtendClassUsageSniff, MediaWiki\Sniffs\Usage\GotoUsageSniff, MediaWiki\Sniffs\Usage\ReferenceThisSniff, MediaWiki\Sniffs\Usage\ScalarTypeHintUsageSniff, MediaWiki\Sniffs\Usage\SuperGlobalsUsageSniff, MediaWiki\Sniffs\VariableAnalysis\ForbiddenGlobalVariablesSniff, MediaWiki\Sniffs\VariableAnalysis\UnusedGlobalVariablesSniff, MediaWiki\Sniffs\WhiteSpace\DisallowEmptyLineFunctionsSniff, MediaWiki\Sniffs\WhiteSpace\MultipleEmptyLinesSniff, MediaWiki\Sniffs\WhiteSpace\OpeningKeywordParenthesisSniff, MediaWiki\Sniffs\WhiteSpace\SpaceAfterClosureSniff, MediaWiki\Sniffs\WhiteSpace\SpaceAfterControlStructureSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeClassBraceSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeSingleLineCommentSniff, MediaWiki\Sniffs\WhiteSpace\SpaceyParenthesisSniff, PHP_CodeSniffer\Sniffs\AbstractPatternSniff, PHP_CodeSniffer\Sniffs\AbstractScopeSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\JumbledIncrementerSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnconditionalIfStatementSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnnecessaryFinalModifierSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnusedFunctionParameterSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\DocCommentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\FixmeSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\InlineControlStructureSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ClosureLinterSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\CSSLintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ESLintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\JSHintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ByteOrderMarkSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNewlineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNoNewlineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\InlineHTMLSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineEndingsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LowercasedFilenameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneClassPerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneInterfacePerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneObjectStructurePerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneTraitPerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\DisallowMultipleStatementsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\NoSpaceAfterCastSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterCastSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\CallTimePassByReferenceSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\FunctionCallArgumentSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceBsdAllmanSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceKernighanRitchieSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\UpperCaseConstantNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\BacktickOperatorSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\CharacterBeforePHPOpeningTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ClosingPHPTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowAlternativePHPTagsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowShortOpenTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseConstantSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseKeywordSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\NoSilencedErrorsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SAPIUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\UpperCaseConstantSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryStringConcatSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\SubversionPropertiesSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowSpaceIndentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowTabIndentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\DisallowSelfActionsSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\IncludeOwnSystemSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\UnusedSystemSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\CSS\BrowserSpecificStylesSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\DebugCodeSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\FirebugConsoleSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\AssignThisSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\CreateWidgetTypeCallbackSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\DisallowNewWidgetSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\AjaxNullComparisonSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\EvalObjectFactorySniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\GetRequestDataSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\ReturnFunctionValueSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Strings\JoinStringsSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FileCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FunctionCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\InlineCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\MultiLineConditionSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Files\IncludingFileSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting\MultiLineAssignmentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionDeclarationSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidClassNameSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff, PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff, PHP_CodeSniffer\Standards\PSR1\Sniffs\Files\SideEffectsSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ControlStructureSpacingSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ElseIfDeclarationSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\SwitchDeclarationSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\ClosingTagSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\EndFileNewlineSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionClosingBraceSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\NamespaceDeclarationSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\UseDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ClassFileNameSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\DuplicatePropertySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\LowercaseClassKeywordsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\BlockCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClosingDeclarationCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\DocCommentAlignmentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\EmptyCatchCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FileCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\InlineCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\LongConditionClosingCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ControlSignatureSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ElseIfDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForEachLoopDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForLoopDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\InlineIfDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\LowercaseDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\SwitchDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionClosingBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionNameSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionOpeningBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ColonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ColourDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DisallowMultipleStyleDefinitionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DuplicateClassDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DuplicateStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\EmptyClassDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\EmptyStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ForbiddenStylesSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\IndentationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\LowercaseStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\MissingColonSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\NamedColoursSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\OpacitySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\SemicolonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ShorthandSizeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug\JavaScriptLintSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug\JSLintSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Files\FileExtensionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Formatting\OperatorBracketSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDeclarationArgumentSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDuplicateArgumentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\GlobalFunctionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\LowercaseFunctionKeywordsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\DisallowObjectStringIndexSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectInstantiationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectMemberCommaSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ComparisonOperatorUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\IncrementDecrementUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ValidLogicalOperatorsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\CommentedOutCodeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowBooleanStatementSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowComparisonAssignmentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowInlineIfSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowMultipleAssignmentsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowObEndFlushSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowSizeFunctionsInLoopsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EmbeddedPhpSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EvalSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\HeredocSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\InnerFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\LowercasePHPFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\NonExecutableCodeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\ConcatenationSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\DoubleQuoteUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\EchoedStringsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\CastSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ControlStructureSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionClosingBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionOpeningBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LanguageConstructSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LogicalOperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ObjectOperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\OperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\PropertyLabelSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeClosingBraceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeKeywordSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SemicolonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SuperfluousWhitespaceSniff, PHP_CodeSniffer\Standards\Zend\Sniffs\Debug\CodeAnalyzerSniff, and PHP_CodeSniffer\Standards\Zend\Sniffs\Files\ClosingTagSniff.

Public Member Functions

 register ()
 
 process (File $phpcsFile, $stackPtr)
 

Member Function Documentation

PHP_CodeSniffer\Sniffs\Sniff::process ( File  $phpcsFile,
  $stackPtr 
)

Called when one of the token types that this sniff is listening for is found.

The stackPtr variable indicates where in the stack the token was found. A sniff can acquire information this token, along with all the other tokens within the stack by first acquiring the token stack:

$tokens = $phpcsFile->getTokens(); echo 'Encountered a '.$tokens[$stackPtr]['type'].' token'; echo 'token information: '; print_r($tokens[$stackPtr]);

If the sniff discovers an anomaly in the code, they can raise an error by calling addError() on the object, specifying an error message and the position of the offending token:

$phpcsFile->addError('Encountered an error', $stackPtr);

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe PHP_CodeSniffer file where the token was found.
int$stackPtrThe position in the PHP_CodeSniffer file's token stack where the token was found.
Returns
void|int Optionally returns a stack pointer. The sniff will not be called again on the current file until the returned stack pointer is reached. Return (count($tokens) + 1) to skip the rest of the file.

Implemented in PHP_CodeSniffer\Sniffs\AbstractPatternSniff, PHP_CodeSniffer\Sniffs\AbstractScopeSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseKeywordSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ForbiddenStylesSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FileCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ComparisonOperatorUsageSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff, MediaWiki\Sniffs\NamingConventions\PrefixedGlobalFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\LongConditionClosingCommentSniff, MediaWiki\Sniffs\Usage\ExtendClassUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\NamedColoursSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowAlternativePHPTagsSniff, MediaWiki\Sniffs\Commenting\FunctionCommentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryStringConcatSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SuperfluousWhitespaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\OperatorSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\InlineControlStructureSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowSizeFunctionsInLoopsSniff, MediaWiki\Sniffs\NamingConventions\LowerCamelFunctionsNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ControlStructureSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ClosureLinterSniff, MediaWiki\Sniffs\Classes\UnusedUseStatementSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\CSS\BrowserSpecificStylesSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForLoopDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDeclarationArgumentSpacingSniff, MediaWiki\Sniffs\WhiteSpace\SpaceyParenthesisSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ControlSignatureSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ShorthandSizeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ControlStructureSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnconditionalIfStatementSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\MultiLineConditionSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\JumbledIncrementerSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceKernighanRitchieSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\CommentedOutCodeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\LowercasePHPFunctionsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineEndingsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowSpaceIndentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowTabIndentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\SwitchDeclarationSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ESLintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceBsdAllmanSniff, MediaWiki\Sniffs\Usage\DeprecatedConstantUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\SubversionPropertiesSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForEachLoopDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\ConcatenationSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnnecessaryFinalModifierSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ByteOrderMarkSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseConstantSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\NoSilencedErrorsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\InlineCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\IndentationSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionClosingBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionOpeningBraceSpaceSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\FixmeSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\FirebugConsoleSniff, MediaWiki\Sniffs\VariableAnalysis\ForbiddenGlobalVariablesSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnusedFunctionParameterSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNewlineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNoNewlineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowShortOpenTagSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\BlockCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\DocCommentAlignmentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\LowercaseDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Formatting\OperatorBracketSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LogicalOperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SemicolonSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\DocCommentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\JSHintSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\LowercaseClassKeywordsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FileCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowInlineIfSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ObjectOperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\PropertyLabelSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SyntaxSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug\JavaScriptLintSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug\JSLintSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LanguageConstructSpacingSniff, MediaWiki\Sniffs\AlternativeSyntax\PHP7UnicodeSyntaxSniff, MediaWiki\Sniffs\NamingConventions\ValidGlobalNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\CSSLintSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\CreateWidgetTypeCallbackSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Strings\JoinStringsSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Files\IncludingFileSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\SwitchDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionClosingBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionNameSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionOpeningBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ColonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DuplicateClassDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\EmptyClassDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectMemberCommaSniff, MediaWiki\Sniffs\Usage\ReferenceThisSniff, MediaWiki\Sniffs\Usage\ScalarTypeHintUsageSniff, MediaWiki\Sniffs\WhiteSpace\OpeningKeywordParenthesisSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\FunctionCallArgumentSpacingSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\AssignThisSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting\MultiLineAssignmentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\DuplicatePropertySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ColourDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DisallowMultipleStyleDefinitionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DuplicateStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\EmptyStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\LowercaseStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\MissingColonSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\OpacitySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\SemicolonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\DisallowObjectStringIndexSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\IncrementDecrementUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\NonExecutableCodeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionSpacingSniff, MediaWiki\Sniffs\AlternativeSyntax\LeadingZeroInFloatSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\LowercaseFunctionKeywordsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneObjectStructurePerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\CallTimePassByReferenceSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\UpperCaseConstantSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\ClassCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidClassNameSniff, PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClosingDeclarationCommentSniff, MediaWiki\Sniffs\Files\ClassMatchesFilenameSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\AjaxNullComparisonSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ElseIfDeclarationSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionClosingBraceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ClassFileNameSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ValidLogicalOperatorsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\HeredocSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\DoubleQuoteUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeKeywordSpacingSniff, PHP_CodeSniffer\Standards\Zend\Sniffs\Debug\CodeAnalyzerSniff, MediaWiki\Sniffs\ExtraCharacters\ParenthesesAroundKeywordSniff, MediaWiki\Sniffs\AlternativeSyntax\ShortCastSyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\NoSpaceAfterCastSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterCastSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\DisallowSelfActionsSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\EvalObjectFactorySniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FunctionCommentSniff, PHP_CodeSniffer\Standards\PSR1\Sniffs\Files\SideEffectsSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\ClosingTagSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\UseDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectInstantiationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowBooleanStatementSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowComparisonAssignmentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowMultipleAssignmentsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EmbeddedPhpSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\EchoedStringsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\CastSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeClosingBraceSniff, MediaWiki\Sniffs\WhiteSpace\SpaceAfterClosureSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\InlineHTMLSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LowercasedFilenameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneClassPerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneInterfacePerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneTraitPerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\DisallowMultipleStatementsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\UpperCaseConstantNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\BacktickOperatorSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\CharacterBeforePHPOpeningTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ClosingPHPTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SAPIUsageSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\IncludeOwnSystemSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\UnusedSystemSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\DebugCodeSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\DisallowNewWidgetSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\GetRequestDataSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\ReturnFunctionValueSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\InlineCommentSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\EndFileNewlineSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\NamespaceDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\EmptyCatchCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ElseIfDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\InlineIfDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Files\FileExtensionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDuplicateArgumentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\GlobalFunctionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowObEndFlushSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EvalSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\InnerFunctionsSniff, PHP_CodeSniffer\Standards\Zend\Sniffs\Files\ClosingTagSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff, MediaWiki\Sniffs\ControlStructures\AssignmentInControlStructuresSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\ClassDeclarationSniff, MediaWiki\Sniffs\Usage\SuperGlobalsUsageSniff, MediaWiki\Sniffs\WhiteSpace\SpaceAfterControlStructureSniff, MediaWiki\Sniffs\Files\OneClassPerFileSniff, MediaWiki\Sniffs\AlternativeSyntax\AlternativeSyntaxSniff, MediaWiki\Sniffs\Usage\DirUsageSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeClassBraceSniff, MediaWiki\Sniffs\ControlStructures\IfElseStructureSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Commenting\FunctionCommentSniff, MediaWiki\Sniffs\VariableAnalysis\UnusedGlobalVariablesSniff, MediaWiki\Sniffs\Usage\GotoUsageSniff, MediaWiki\Sniffs\WhiteSpace\DisallowEmptyLineFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ClassDeclarationSniff, MediaWiki\Sniffs\WhiteSpace\MultipleEmptyLinesSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeSingleLineCommentSniff, and MediaWiki\Sniffs\Usage\DbrQueryUsageSniff.

PHP_CodeSniffer\Sniffs\Sniff::register ( )

Registers the tokens that this sniff wants to listen for.

An example return value for a sniff that wants to listen for whitespace and any comments would be:

return array( T_WHITESPACE, T_DOC_COMMENT, T_COMMENT, );

Returns
int[]
See Also
Tokens.php

Implemented in PHP_CodeSniffer\Sniffs\AbstractScopeSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff, PHP_CodeSniffer\Sniffs\AbstractPatternSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FileCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ForbiddenStylesSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ComparisonOperatorUsageSniff, MediaWiki\Sniffs\Usage\ExtendClassUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\LongConditionClosingCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\NamedColoursSniff, MediaWiki\Sniffs\Commenting\FunctionCommentSniff, MediaWiki\Sniffs\NamingConventions\LowerCamelFunctionsNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryStringConcatSniff, MediaWiki\Sniffs\Classes\UnusedUseStatementSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ClosureLinterSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\CSS\BrowserSpecificStylesSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForLoopDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowSizeFunctionsInLoopsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SuperfluousWhitespaceSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ShorthandSizeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDeclarationArgumentSpacingSniff, MediaWiki\Sniffs\Usage\DeprecatedConstantUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\JumbledIncrementerSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionDeclarationSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\CommentedOutCodeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\LowercasePHPFunctionsSniff, MediaWiki\Sniffs\VariableAnalysis\ForbiddenGlobalVariablesSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnconditionalIfStatementSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\InlineControlStructureSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineEndingsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowSpaceIndentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowTabIndentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\MultiLineConditionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\SwitchDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\OperatorSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowAlternativePHPTagsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ESLintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceKernighanRitchieSniff, MediaWiki\Sniffs\NamingConventions\ValidGlobalNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\SubversionPropertiesSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ControlStructureSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForEachLoopDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\ConcatenationSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnnecessaryFinalModifierSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ByteOrderMarkSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceBsdAllmanSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\NoSilencedErrorsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\IndentationSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\FixmeSniff, MediaWiki\Sniffs\AlternativeSyntax\PHP7UnicodeSyntaxSniff, MediaWiki\Sniffs\Usage\ReferenceThisSniff, MediaWiki\Sniffs\Usage\ScalarTypeHintUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNewlineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNoNewlineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\DocCommentAlignmentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\InlineCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ControlSignatureSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Formatting\OperatorBracketSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ControlStructureSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LogicalOperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SemicolonSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\DocCommentSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseConstantSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FileCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowInlineIfSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionClosingBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionOpeningBraceSpaceSniff, MediaWiki\Sniffs\AlternativeSyntax\LeadingZeroInFloatSniff, MediaWiki\Sniffs\Files\ClassMatchesFilenameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\JSHintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SyntaxSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug\JavaScriptLintSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnusedFunctionParameterSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\CSSLintSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\CreateWidgetTypeCallbackSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Strings\JoinStringsSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\SwitchDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\BlockCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionClosingBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionNameSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionOpeningBraceSpaceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ColonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DuplicateClassDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\EmptyClassDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug\JSLintSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectMemberCommaSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\FirebugConsoleSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\AssignThisSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting\MultiLineAssignmentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\DuplicatePropertySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ColourDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DisallowMultipleStyleDefinitionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\DuplicateStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\EmptyStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\LowercaseStyleDefinitionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\MissingColonSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\OpacitySniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\SemicolonSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\DisallowObjectStringIndexSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ObjectOperatorSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\PropertyLabelSpacingSniff, MediaWiki\Sniffs\AlternativeSyntax\ShortCastSyntaxSniff, MediaWiki\Sniffs\WhiteSpace\OpeningKeywordParenthesisSniff, MediaWiki\Sniffs\WhiteSpace\SpaceAfterClosureSniff, MediaWiki\Sniffs\ExtraCharacters\ParenthesesAroundKeywordSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\AjaxNullComparisonSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Files\IncludingFileSniff, PHP_CodeSniffer\Standards\Zend\Sniffs\Debug\CodeAnalyzerSniff, MediaWiki\Sniffs\Usage\SuperGlobalsUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\NoSpaceAfterCastSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterCastSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\CallTimePassByReferenceSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\FunctionCallArgumentSpacingSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowShortOpenTagSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\DisallowSelfActionsSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\EvalObjectFactorySniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FunctionCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff, PHP_CodeSniffer\Standards\PSR1\Sniffs\Files\SideEffectsSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\ClosingTagSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\UseDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectInstantiationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\IncrementDecrementUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowBooleanStatementSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowComparisonAssignmentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowMultipleAssignmentsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EmbeddedPhpSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\NonExecutableCodeSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\EchoedStringsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\CastSpacingSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeClosingBraceSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeKeywordSpacingSniff, MediaWiki\Sniffs\ControlStructures\AssignmentInControlStructuresSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\InlineHTMLSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LowercasedFilenameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneClassPerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneInterfacePerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneObjectStructurePerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneTraitPerFileSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\DisallowMultipleStatementsSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\UpperCaseConstantNameSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\BacktickOperatorSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\CharacterBeforePHPOpeningTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ClosingPHPTagSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseKeywordSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SAPIUsageSniff, PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\UpperCaseConstantSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\IncludeOwnSystemSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\UnusedSystemSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\DebugCodeSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\DisallowNewWidgetSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\GetRequestDataSniff, PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\ReturnFunctionValueSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\ClassCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\InlineCommentSniff, PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidClassNameSniff, PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ElseIfDeclarationSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\EndFileNewlineSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionClosingBraceSniff, PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\NamespaceDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ClassFileNameSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\LowercaseClassKeywordsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClosingDeclarationCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\EmptyCatchCommentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ElseIfDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\InlineIfDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\LowercaseDeclarationSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Files\FileExtensionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDuplicateArgumentSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\GlobalFunctionSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\LowercaseFunctionKeywordsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ValidLogicalOperatorsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowObEndFlushSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EvalSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\HeredocSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\InnerFunctionsSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\DoubleQuoteUsageSniff, PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LanguageConstructSpacingSniff, PHP_CodeSniffer\Standards\Zend\Sniffs\Files\ClosingTagSniff, MediaWiki\Sniffs\Usage\DirUsageSniff, MediaWiki\Sniffs\Files\OneClassPerFileSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff, MediaWiki\Sniffs\WhiteSpace\SpaceyParenthesisSniff, MediaWiki\Sniffs\NamingConventions\PrefixedGlobalFunctionsSniff, MediaWiki\Sniffs\VariableAnalysis\UnusedGlobalVariablesSniff, MediaWiki\Sniffs\ControlStructures\IfElseStructureSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeClassBraceSniff, MediaWiki\Sniffs\Usage\DbrQueryUsageSniff, MediaWiki\Sniffs\WhiteSpace\SpaceAfterControlStructureSniff, MediaWiki\Sniffs\Usage\GotoUsageSniff, MediaWiki\Sniffs\WhiteSpace\DisallowEmptyLineFunctionsSniff, MediaWiki\Sniffs\WhiteSpace\MultipleEmptyLinesSniff, MediaWiki\Sniffs\WhiteSpace\SpaceBeforeSingleLineCommentSniff, and MediaWiki\Sniffs\AlternativeSyntax\AlternativeSyntaxSniff.


The documentation for this interface was generated from the following file: