Documentation

CodeSniffer

Packages

MySource

Interfaces, Classes and Traits

PHP_CodeSniffer_Report
Represents a PHP_CodeSniffer report.
PHP_CodeSniffer_Sniff
Represents a PHP_CodeSniffer sniff for sniffing coding standards.
PHP_CodeSniffer_CLI
A class to process command line phpcs scripts.
PHP_CodeSniffer_DocGenerators_Generator
The base class for all PHP_CodeSniffer documentation generators.
PHP_CodeSniffer_DocGenerators_HTML
A doc generator that outputs documentation in one big HTML file.
PHP_CodeSniffer_DocGenerators_Markdown
A doc generator that outputs documentation in Markdown format.
PHP_CodeSniffer_DocGenerators_Text
A doc generator that outputs text-based documentation.
PHP_CodeSniffer_Exception
An exception thrown by PHP_CodeSniffer when it encounters an unrecoverable error.
PHP_CodeSniffer_Reporting
A class to manage reporting.
PHP_CodeSniffer_Reports_Cbf
CBF report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Checkstyle
Checkstyle report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Csv
Csv report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Diff
Diff report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Emacs
Emacs report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Full
Full report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Gitblame
Gitblame report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Hgblame
Mercurial report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Info
Info report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Json
Json report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Junit
JUnit report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Notifysend
Notify-send report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Source
Source report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Summary
Summary report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Svnblame
Svnblame report for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_VersionControl
Version control report base class for PHP_CodeSniffer.
PHP_CodeSniffer_Reports_Xml
Xml report for PHP_CodeSniffer.
PHP_CodeSniffer_Standards_AbstractScopeSniff
An AbstractScopeTest allows for tests that extend from this class to listen for tokens within a particular scope.
PHP_CodeSniffer_Standards_AbstractVariableSniff
A class to find T_VARIABLE tokens.
Generic_Sniffs_Arrays_DisallowLongArraySyntaxSniff
Bans the use of the PHP long array syntax.
Generic_Sniffs_Arrays_DisallowShortArraySyntaxSniff
Bans the use of the PHP short array syntax.
Generic_Sniffs_Classes_DuplicateClassNameSniff
Reports errors if the same class or interface name is used in multiple files.
Generic_Sniffs_Classes_OpeningBraceSameLineSniff
Generic_Sniffs_Classes_OpeningBraceSameLineSniff.
Generic_Sniffs_CodeAnalysis_EmptyStatementSniff
This sniff class detected empty statement.
Generic_Sniffs_CodeAnalysis_ForLoopShouldBeWhileLoopSniff
Detects for-loops that can be simplified to a while-loop.
Generic_Sniffs_CodeAnalysis_ForLoopWithTestFunctionCallSniff
Detects for-loops that use a function call in the test expression.
Generic_Sniffs_CodeAnalysis_JumbledIncrementerSniff
Detects incrementer jumbling in for loops.
Generic_Sniffs_CodeAnalysis_UnconditionalIfStatementSniff
Detects unconditional if- and elseif-statements.
Generic_Sniffs_CodeAnalysis_UnnecessaryFinalModifierSniff
Detects unnecessary final modifiers inside of final classes.
Generic_Sniffs_CodeAnalysis_UnusedFunctionParameterSniff
Checks the for unused function parameters.
Generic_Sniffs_CodeAnalysis_UselessOverridingMethodSniff
Detects unnecessary overridden methods that simply call their parent.
Generic_Sniffs_Commenting_DocCommentSniff
Ensures doc blocks follow basic formatting.
Generic_Sniffs_Commenting_FixmeSniff
Generic_Sniffs_Commenting_FixmeSniff.
Generic_Sniffs_Commenting_TodoSniff
Generic_Sniffs_Commenting_TodoSniff.
Generic_Sniffs_ControlStructures_InlineControlStructureSniff
Generic_Sniffs_ControlStructures_InlineControlStructureSniff.
Generic_Sniffs_Debug_ClosureLinterSniff
Generic_Sniffs_Debug_ClosureLinterSniff.
Generic_Sniffs_Debug_CSSLintSniff
Generic_Sniffs_Debug_CSSLintSniff.
Generic_Sniffs_Debug_ESLintSniff
Generic_Sniffs_Debug_ESLintSniff.
Generic_Sniffs_Debug_JSHintSniff
Generic_Sniffs_Debug_JSHintSniff.
Generic_Sniffs_Files_ByteOrderMarkSniff
Generic_Sniffs_Files_ByteOrderMarkSniff.
Generic_Sniffs_Files_EndFileNewlineSniff
Generic_Sniffs_Files_EndFileNewlineSniff.
Generic_Sniffs_Files_EndFileNoNewlineSniff
Generic_Sniffs_Files_EndFileNoNewlineSniff.
Generic_Sniffs_Files_InlineHTMLSniff
Generic_Sniffs_Files_InlineHTMLSniff.
Generic_Sniffs_Files_LineEndingsSniff
Generic_Sniffs_Files_LineEndingsSniff.
Generic_Sniffs_Files_LineLengthSniff
Generic_Sniffs_Files_LineLengthSniff.
Generic_Sniffs_Files_LowercasedFilenameSniff
Checks that all file names are lowercased.
Generic_Sniffs_Files_OneClassPerFileSniff
Checks that only one class is declared per file.
Generic_Sniffs_Files_OneInterfacePerFileSniff
Checks that only one interface is declared per file.
Generic_Sniffs_Files_OneTraitPerFileSniff
Checks that only one trait is declared per file.
Generic_Sniffs_Formatting_DisallowMultipleStatementsSniff
Generic_Sniffs_Formatting_DisallowMultipleStatementsSniff.
Generic_Sniffs_Formatting_MultipleStatementAlignmentSniff
Generic_Sniffs_Formatting_MultipleStatementAlignmentSniff.
Generic_Sniffs_Formatting_NoSpaceAfterCastSniff
Generic_Sniffs_Formatting_NoSpaceAfterCastSniff.
Generic_Sniffs_Formatting_SpaceAfterCastSniff
Generic_Sniffs_Formatting_SpaceAfterCastSniff.
Generic_Sniffs_Formatting_SpaceAfterNotSniff
Generic_Sniffs_Formatting_SpaceAfterNotSniff.
Generic_Sniffs_Functions_CallTimePassByReferenceSniff
Generic_Sniffs_Functions_CallTimePassByReferenceSniff.
Generic_Sniffs_Functions_FunctionCallArgumentSpacingSniff
Generic_Sniffs_Functions_FunctionCallArgumentSpacingSniff.
Generic_Sniffs_Functions_OpeningFunctionBraceBsdAllmanSniff
Generic_Sniffs_Functions_OpeningFunctionBraceBsdAllmanSniff.
Generic_Sniffs_Functions_OpeningFunctionBraceKernighanRitchieSniff
Generic_Sniffs_Functions_OpeningFunctionBraceKernighanRitchieSniff.
Generic_Sniffs_Metrics_CyclomaticComplexitySniff
Checks the cyclomatic complexity (McCabe) for functions.
Generic_Sniffs_Metrics_NestingLevelSniff
Checks the nesting level for methods.
Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff
Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.
Generic_Sniffs_NamingConventions_ConstructorNameSniff
Generic_Sniffs_NamingConventions_ConstructorNameSniff.
Generic_Sniffs_NamingConventions_UpperCaseConstantNameSniff
Generic_Sniffs_NamingConventions_UpperCaseConstantNameSniff.
Generic_Sniffs_PHP_BacktickOperatorSniff
Generic_Sniffs_PHP_BacktickOperatorSniff.
Generic_Sniffs_PHP_CharacterBeforePHPOpeningTagSniff
Checks that the opening PHP tag is the first content in a file.
Generic_Sniffs_PHP_ClosingPHPTagSniff
Checks that open PHP tags are paired with closing tags.
Generic_Sniffs_PHP_DeprecatedFunctionsSniff
Generic_Sniffs_PHP_DeprecatedFunctionsSniff.
Generic_Sniffs_PHP_DisallowAlternativePHPTagsSniff
Generic_Sniffs_PHP_DisallowAlternativePHPTagsSniff.
Generic_Sniffs_PHP_DisallowShortOpenTagSniff
Generic_Sniffs_PHP_DisallowShortOpenTagSniff.
Generic_Sniffs_PHP_ForbiddenFunctionsSniff
Generic_Sniffs_PHP_ForbiddenFunctionsSniff.
Generic_Sniffs_PHP_LowerCaseConstantSniff
Generic_Sniffs_PHP_LowerCaseConstantSniff.
Generic_Sniffs_PHP_LowerCaseKeywordSniff
Generic_Sniffs_PHP_LowerCaseKeywordSniff.
Generic_Sniffs_PHP_NoSilencedErrorsSniff
Generic_Sniffs_PHP_NoSilencedErrorsSniff.
Generic_Sniffs_PHP_SAPIUsageSniff
Generic_Sniffs_PHP_SAPIUsageSniff.
Generic_Sniffs_PHP_SyntaxSniff
Generic_Sniffs_PHP_SyntaxSniff.
Generic_Sniffs_PHP_UpperCaseConstantSniff
Generic_Sniffs_PHP_UpperCaseConstantSniff.
Generic_Sniffs_Strings_UnnecessaryStringConcatSniff
Generic_Sniffs_Strings_UnnecessaryStringConcatSniff.
Generic_Sniffs_VersionControl_SubversionPropertiesSniff
Generic_Sniffs_VersionControl_SubversionPropertiesSniff.
Generic_Sniffs_WhiteSpace_DisallowSpaceIndentSniff
Generic_Sniffs_WhiteSpace_DisallowSpaceIndentSniff.
Generic_Sniffs_WhiteSpace_DisallowTabIndentSniff
Generic_Sniffs_WhiteSpace_DisallowTabIndentSniff.
Generic_Sniffs_WhiteSpace_ScopeIndentSniff
Generic_Sniffs_Whitespace_ScopeIndentSniff.
PHP_CodeSniffer_Standards_IncorrectPatternException
An exception thrown if the pattern being processed is not supposed to be validating the code in question.
MySource_Sniffs_Commenting_FunctionCommentSniff
Parses and verifies the doc comments for functions.
MySource_Sniffs_CSS_BrowserSpecificStylesSniff
MySource_Sniffs_CSS_BrowserSpecificStylesSniff.
PEAR_Sniffs_Classes_ClassDeclarationSniff
Class Declaration Test.
PEAR_Sniffs_Commenting_ClassCommentSniff
Parses and verifies the doc comments for classes.
PEAR_Sniffs_Commenting_FileCommentSniff
Parses and verifies the doc comments for files.
PEAR_Sniffs_Commenting_FunctionCommentSniff
Parses and verifies the doc comments for functions.
PEAR_Sniffs_Commenting_InlineCommentSniff
PHP_CodeSniffer_Sniffs_PEAR_Commenting_InlineCommentSniff.
PEAR_Sniffs_ControlStructures_ControlSignatureSniff
Verifies that control statements conform to their coding standards.
PEAR_Sniffs_ControlStructures_MultiLineConditionSniff
PEAR_Sniffs_ControlStructures_MultiLineConditionSniff.
PEAR_Sniffs_Files_IncludingFileSniff
PEAR_Sniffs_Files_IncludingFileSniff.
PEAR_Sniffs_Formatting_MultiLineAssignmentSniff
PEAR_Sniffs_Formatting_MultiLineAssignmentSniff.
PEAR_Sniffs_Functions_FunctionCallSignatureSniff
PEAR_Sniffs_Functions_FunctionCallSignatureSniff.
PEAR_Sniffs_Functions_FunctionDeclarationSniff
PEAR_Sniffs_Functions_FunctionDeclarationSniff.
PEAR_Sniffs_Functions_ValidDefaultValueSniff
PEAR_Sniffs_Functions_ValidDefaultValueSniff.
PEAR_Sniffs_NamingConventions_ValidClassNameSniff
PEAR_Sniffs_NamingConventions_ValidClassNameSniff.
PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff
PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
PEAR_Sniffs_NamingConventions_ValidVariableNameSniff
PEAR_Sniffs_NamingConventions_ValidVariableNameSniff.
PEAR_Sniffs_WhiteSpace_ObjectOperatorIndentSniff
PEAR_Sniffs_WhiteSpace_ObjectOperatorIndentSniff.
PEAR_Sniffs_WhiteSpace_ScopeClosingBraceSniff
PEAR_Sniffs_Whitespace_ScopeClosingBraceSniff.
PEAR_Sniffs_WhiteSpace_ScopeIndentSniff
PEAR_Sniffs_Whitespace_ScopeIndentSniff.
PSR1_Sniffs_Classes_ClassDeclarationSniff
Class Declaration Test.
PSR1_Sniffs_Files_SideEffectsSniff
PSR1_Sniffs_Files_SideEffectsSniff.
PSR1_Sniffs_Methods_CamelCapsMethodNameSniff
PSR1_Sniffs_Methods_CamelCapsMethodNameSniff.
PSR2_Sniffs_Classes_ClassDeclarationSniff
Class Declaration Test.
PSR2_Sniffs_Classes_PropertyDeclarationSniff
Verifies that properties are declared correctly.
PSR2_Sniffs_ControlStructures_ControlStructureSpacingSniff
PSR2_Sniffs_WhiteSpace_ControlStructureSpacingSniff.
PSR2_Sniffs_ControlStructures_ElseIfDeclarationSniff
PSR2_Sniffs_ControlStructures_ElseIfDeclarationSniff.
PSR2_Sniffs_ControlStructures_SwitchDeclarationSniff
PSR2_Sniffs_ControlStructures_SwitchDeclarationSniff.
PSR2_Sniffs_Files_ClosingTagSniff
PSR2_Sniffs_Files_LineEndingsSniff.
PSR2_Sniffs_Files_EndFileNewlineSniff
Generic_Sniffs_Files_EndFileNewlineSniff.
PSR2_Sniffs_Methods_FunctionCallSignatureSniff
PSR2_Sniffs_Methods_FunctionCallSignatureSniff.
PSR2_Sniffs_Methods_FunctionClosingBraceSniff
PSR2_Sniffs_Methods_FunctionClosingBraceSniff.
PSR2_Sniffs_Methods_MethodDeclarationSniff
PSR2_Sniffs_Methods_MethodDeclarationSniff.
PSR2_Sniffs_Namespaces_NamespaceDeclarationSniff
PSR2_Sniffs_Namespaces_NamespaceDeclarationSniff.
PSR2_Sniffs_Namespaces_UseDeclarationSniff
PSR2_Sniffs_Namespaces_UseDeclarationSniff.
Squiz_Sniffs_Arrays_ArrayBracketSpacingSniff
Squiz_Sniffs_Arrays_ArrayBracketSpacingSniff.
Squiz_Sniffs_Arrays_ArrayDeclarationSniff
A test to ensure that arrays conform to the array coding standard.
Squiz_Sniffs_Classes_ClassDeclarationSniff
Class Declaration Test.
Squiz_Sniffs_Classes_ClassFileNameSniff
Squiz_Sniffs_Classes_ClassFileNameSniff.
Squiz_Sniffs_Classes_DuplicatePropertySniff
Squiz_Sniffs_Classes_DuplicatePropertySniff.
Squiz_Sniffs_Classes_LowercaseClassKeywordsSniff
Squiz_Sniffs_Classes_LowercaseClassKeywordsSniff.
Squiz_Sniffs_Classes_SelfMemberReferenceSniff
Tests self member references.
Squiz_Sniffs_Classes_ValidClassNameSniff
Squiz_Sniffs_Classes_ValidClassNameSniff.
Squiz_Sniffs_Commenting_BlockCommentSniff
Squiz_Sniffs_Commenting_BlockCommentSniff.
Squiz_Sniffs_Commenting_ClassCommentSniff
Parses and verifies the class doc comment.
Squiz_Sniffs_Commenting_ClosingDeclarationCommentSniff
Squiz_Sniffs_Commenting_ClosingDeclarationCommentSniff.
Squiz_Sniffs_Commenting_DocCommentAlignmentSniff
Squiz_Sniffs_Commenting_DocCommentAlignmentSniff.
Squiz_Sniffs_Commenting_EmptyCatchCommentSniff
Squiz_Sniffs_Commenting_EmptyCatchCommentSniff.
Squiz_Sniffs_Commenting_FileCommentSniff
Parses and verifies the file doc comment.
Squiz_Sniffs_Commenting_FunctionCommentSniff
Parses and verifies the doc comments for functions.
Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff
Verifies that a @throws tag exists for a function that throws exceptions.
Squiz_Sniffs_Commenting_InlineCommentSniff
Squiz_Sniffs_Commenting_InlineCommentSniff.
Squiz_Sniffs_Commenting_LongConditionClosingCommentSniff
Squiz_Sniffs_ControlStructures_LongConditionClosingCommentSniff.
Squiz_Sniffs_Commenting_PostStatementCommentSniff
Squiz_Sniffs_Commenting_PostStatementCommentSniff.
Squiz_Sniffs_Commenting_VariableCommentSniff
Parses and verifies the variable doc comment.
Squiz_Sniffs_ControlStructures_ControlSignatureSniff
Verifies that control statements conform to their coding standards.
Squiz_Sniffs_ControlStructures_ElseIfDeclarationSniff
Squiz_Sniffs_ControlStructures_ElseIfDeclarationSniff.
Squiz_Sniffs_ControlStructures_ForEachLoopDeclarationSniff
Squiz_Sniffs_ControlStructures_ForEachLoopDeclarationSniff.
Squiz_Sniffs_ControlStructures_ForLoopDeclarationSniff
Squiz_Sniffs_ControlStructures_ForLoopDeclarationSniff.
Squiz_Sniffs_ControlStructures_InlineIfDeclarationSniff
Squiz_Sniffs_ControlStructures_InlineIfDeclarationSniff.
Squiz_Sniffs_ControlStructures_LowercaseDeclarationSniff
Squiz_Sniffs_ControlStructures_LowercaseDeclarationSniff.
Squiz_Sniffs_ControlStructures_SwitchDeclarationSniff
Squiz_Sniffs_ControlStructures_SwitchDeclarationSniff.
Squiz_Sniffs_CSS_ClassDefinitionClosingBraceSpaceSniff
Squiz_Sniffs_CSS_ClassDefinitionClosingBraceSpaceSniff.
Squiz_Sniffs_CSS_ClassDefinitionNameSpacingSniff
Squiz_Sniffs_CSS_ClassDefinitionNameSpacingSniff.
Squiz_Sniffs_CSS_ClassDefinitionOpeningBraceSpaceSniff
Squiz_Sniffs_CSS_ClassDefinitionOpeningBraceSpaceSniff.
Squiz_Sniffs_CSS_ColonSpacingSniff
Squiz_Sniffs_CSS_ColonSpacingSniff.
Squiz_Sniffs_CSS_ColourDefinitionSniff
Squiz_Sniffs_CSS_ColourDefinitionSniff.
Squiz_Sniffs_CSS_DisallowMultipleStyleDefinitionsSniff
Squiz_Sniffs_CSS_DisallowMultipleStyleDefinitionsSniff.
Squiz_Sniffs_CSS_DuplicateClassDefinitionSniff
Squiz_Sniffs_CSS_DuplicateClassDefinitionSniff.
Squiz_Sniffs_CSS_DuplicateStyleDefinitionSniff
Squiz_Sniffs_CSS_DuplicateStyleDefinitionSniff.
Squiz_Sniffs_CSS_EmptyClassDefinitionSniff
Squiz_Sniffs_CSS_EmptyClassDefinitionSniff.
Squiz_Sniffs_CSS_EmptyStyleDefinitionSniff
Squiz_Sniffs_CSS_EmptyStyleDefinitionSniff.
Squiz_Sniffs_CSS_ForbiddenStylesSniff
Squiz_Sniffs_CSS_ForbiddenStylesSniff.
Squiz_Sniffs_CSS_IndentationSniff
Squiz_Sniffs_CSS_IndentationSniff.
Squiz_Sniffs_CSS_LowercaseStyleDefinitionSniff
Squiz_Sniffs_CSS_LowercaseStyleDefinitionSniff.
Squiz_Sniffs_CSS_MissingColonSniff
Squiz_Sniffs_CSS_MissingColonSniff.
Squiz_Sniffs_CSS_NamedColoursSniff
Squiz_Sniffs_CSS_NamedColoursSniff.
Squiz_Sniffs_CSS_OpacitySniff
Squiz_Sniffs_CSS_OpacitySniff.
Squiz_Sniffs_CSS_SemicolonSpacingSniff
Squiz_Sniffs_CSS_SemicolonSpacingSniff.
Squiz_Sniffs_CSS_ShorthandSizeSniff
Squiz_Sniffs_CSS_ShorthandSizeSniff.
Squiz_Sniffs_Debug_JavaScriptLintSniff
Squiz_Sniffs_Debug_JavaScriptLintSniff.
Squiz_Sniffs_Debug_JSLintSniff
Squiz_Sniffs_Debug_JSLintSniff.
Squiz_Sniffs_Files_FileExtensionSniff
Squiz_Sniffs_Files_FileExtensionSniff.
Squiz_Sniffs_Formatting_OperatorBracketSniff
Squiz_Sniffs_Formatting_OperationBracketSniff.
Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff
Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff.
Squiz_Sniffs_Functions_FunctionDeclarationSniff
Squiz_Sniffs_Functions_FunctionDeclarationSniff.
Squiz_Sniffs_Functions_FunctionDuplicateArgumentSniff
Squiz_Sniffs_Functions_FunctionDuplicateArgumentSpacingSniff.
Squiz_Sniffs_Functions_GlobalFunctionSniff
Squiz_Sniffs_Functions_GlobalFunctionSniff.
Squiz_Sniffs_Functions_LowercaseFunctionKeywordsSniff
Squiz_Sniffs_Functions_LowercaseFunctionKeywordsSniff.
Squiz_Sniffs_Functions_MultiLineFunctionDeclarationSniff
Squiz_Sniffs_Functions_MultiLineFunctionDeclarationSniff.
Squiz_Sniffs_NamingConventions_ValidFunctionNameSniff
Squiz_Sniffs_NamingConventions_ValidFunctionNameSniff.
Squiz_Sniffs_NamingConventions_ValidVariableNameSniff
Squiz_Sniffs_NamingConventions_ValidVariableNameSniff.
Squiz_Sniffs_Objects_DisallowObjectStringIndexSniff
Ensures that object indexes are written in dot notation.
Squiz_Sniffs_Objects_ObjectInstantiationSniff
Squiz_Sniffs_Objects_ObjectInstantiationSniff.
Squiz_Sniffs_Objects_ObjectMemberCommaSniff
Squiz_Sniffs_Objects_ObjectMemberCommaSniff.
Squiz_Sniffs_Operators_ComparisonOperatorUsageSniff
A Sniff to enforce the use of IDENTICAL type operators rather than EQUAL operators.
Squiz_Sniffs_Operators_IncrementDecrementUsageSniff
Squiz_Sniffs_Operators_IncrementDecrementUsageSniff.
Squiz_Sniffs_Operators_ValidLogicalOperatorsSniff
Squiz_Sniffs_Operators_ValidLogicalOperatorsSniff.
Squiz_Sniffs_PHP_CommentedOutCodeSniff
Squiz_Sniffs_PHP_CommentedOutCodeSniff.
Squiz_Sniffs_PHP_DisallowBooleanStatementSniff
Squiz_Sniffs_PHP_DisallowBooleanStatementSniff.
Squiz_Sniffs_PHP_DisallowComparisonAssignmentSniff
Squiz_Sniffs_PHP_DisallowComparisonAssignmentSniff.
Squiz_Sniffs_PHP_DisallowInlineIfSniff
Squiz_Sniffs_Formatting_DisallowInlineIfSniff.
Squiz_Sniffs_PHP_DisallowMultipleAssignmentsSniff
Squiz_Sniffs_PHP_DisallowMultipleAssignmentsSniff.
Squiz_Sniffs_PHP_DisallowObEndFlushSniff
Squiz_Sniffs_Formatting_DisallowObEndFlushSniff.
Squiz_Sniffs_PHP_DisallowSizeFunctionsInLoopsSniff
Squiz_Sniffs_PHP_DisallowSizeFunctionsInLoopsSniff.
Squiz_Sniffs_PHP_DiscouragedFunctionsSniff
Squiz_Sniffs_PHP_DiscouragedFunctionsSniff.
Squiz_Sniffs_PHP_EmbeddedPhpSniff
Squiz_Sniffs_PHP_EmbeddedPhpSniff.
Squiz_Sniffs_PHP_EvalSniff
Squiz_Sniffs_PHP_EvalSniff.
Squiz_Sniffs_PHP_ForbiddenFunctionsSniff
Squiz_Sniffs_PHP_ForbiddenFunctionsSniff.
Squiz_Sniffs_PHP_GlobalKeywordSniff
Squiz_Sniffs_PHP_GlobalKeywordSniff.
Squiz_Sniffs_PHP_HeredocSniff
Squiz_Sniffs_PHP_HeredocSniff.
Squiz_Sniffs_PHP_InnerFunctionsSniff
Squiz_Sniffs_PHP_InnerFunctionsSniff.
Squiz_Sniffs_PHP_LowercasePHPFunctionsSniff
Squiz_Sniffs_PHP_LowercasePHPFunctionsSniff.
Squiz_Sniffs_PHP_NonExecutableCodeSniff
Squiz_Sniffs_PHP_NonExecutableCodeSniff.
Squiz_Sniffs_Scope_MemberVarScopeSniff
Verifies that class members have scope modifiers.
Squiz_Sniffs_Scope_MethodScopeSniff
Verifies that class methods have scope modifiers.
Squiz_Sniffs_Scope_StaticThisUsageSniff
Squiz_Sniffs_Scope_StaticThisUsageSniff.
Squiz_Sniffs_Strings_ConcatenationSpacingSniff
Squiz_Sniffs_Strings_ConcatenationSpacingSniff.
Squiz_Sniffs_Strings_DoubleQuoteUsageSniff
Squiz_Sniffs_Strings_DoubleQuoteUsageSniff.
Squiz_Sniffs_Strings_EchoedStringsSniff
Squiz_Sniffs_Strings_EchoedStringsSniff.
Squiz_Sniffs_WhiteSpace_CastSpacingSniff
Squiz_Sniffs_WhiteSpace_CastSpacingSniff.
Squiz_Sniffs_WhiteSpace_ControlStructureSpacingSniff
Squiz_Sniffs_WhiteSpace_ControlStructureSpacingSniff.
Squiz_Sniffs_WhiteSpace_FunctionClosingBraceSpaceSniff
Squiz_Sniffs_WhiteSpace_FunctionClosingBraceSpaceSniff.
Squiz_Sniffs_WhiteSpace_FunctionOpeningBraceSpaceSniff
Squiz_Sniffs_WhiteSpace_FunctionOpeningBraceSpaceSniff.
Squiz_Sniffs_WhiteSpace_FunctionSpacingSniff
Squiz_Sniffs_WhiteSpace_FunctionSpacingSniff.
Squiz_Sniffs_WhiteSpace_LanguageConstructSpacingSniff
Squiz_Sniffs_WhiteSpace_LanguageConstructSpacingSniff.
Squiz_Sniffs_WhiteSpace_LogicalOperatorSpacingSniff
Sniffs_Squiz_WhiteSpace_OperatorSpacingSniff.
Squiz_Sniffs_WhiteSpace_MemberVarSpacingSniff
Verifies that class members are spaced correctly.
Squiz_Sniffs_WhiteSpace_ObjectOperatorSpacingSniff
Squiz_Sniffs_WhiteSpace_ObjectOperatorSpacingSniff.
Squiz_Sniffs_WhiteSpace_OperatorSpacingSniff
Sniffs_Squiz_WhiteSpace_OperatorSpacingSniff.
Squiz_Sniffs_WhiteSpace_PropertyLabelSpacingSniff
Squiz_Sniffs_WhiteSpace_PropertyLabelSpacingSniff.
Squiz_Sniffs_WhiteSpace_ScopeClosingBraceSniff
Squiz_Sniffs_Whitespace_ScopeClosingBraceSniff.
Squiz_Sniffs_WhiteSpace_ScopeKeywordSpacingSniff
Squiz_Sniffs_WhiteSpace_ScopeKeywordSpacingSniff.
Squiz_Sniffs_WhiteSpace_SemicolonSpacingSniff
Squiz_Sniffs_WhiteSpace_SemicolonSpacingSniff.
Squiz_Sniffs_WhiteSpace_SuperfluousWhitespaceSniff
Squiz_Sniffs_WhiteSpace_SuperfluousWhitespaceSniff.
Zend_Sniffs_Debug_CodeAnalyzerSniff
Zend_Sniffs_Debug_CodeAnalyzerSniff.
Zend_Sniffs_Files_ClosingTagSniff
Zend_Sniffs_Files_LineEndingsSniff.
Zend_Sniffs_NamingConventions_ValidVariableNameSniff
Squiz_Sniffs_NamingConventions_ValidVariableNameSniff.
PHP_CodeSniffer_Tokenizers_Comment
Tokenizes doc block comments.
PHP_CodeSniffer_Tokenizers_CSS
Tokenizes CSS code.
PHP_CodeSniffer_Tokenizers_JS
Tokenizes JS code.
PHP_CodeSniffer_Tokens
The Tokens class contains weightings for tokens based on their probability of occurrence in a file.
PHP_CodeSniffer
PHP_CodeSniffer tokenizes PHP code and detects violations of a defined set of coding standards.

Table of Contents

buildFromPackage()  : void
Build from a package list.
buildFromNode()  : void
Add from a node.

Functions

buildFromPackage()

Build from a package list.

buildFromPackage(object &$phar) : void
Parameters
$phar : object

The Phar class.

buildFromNode()

Add from a node.

buildFromNode(object &$phar, object $node[, string $prefix = '' ]) : void
Parameters
$phar : object

The Phar class.

$node : object

The node to add.

$prefix : string = ''

The prefix of the structure.

Search results