Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

CakePHP ruleset

The CakePHP standard contains 135 sniffs

CakePHP (19 sniffs)

  • CakePHP.Classes.ReturnTypeHint
  • CakePHP.Commenting.DocBlockAlignment
  • CakePHP.Commenting.FunctionComment
  • CakePHP.Commenting.InheritDoc
  • CakePHP.ControlStructures.ControlStructures
  • CakePHP.ControlStructures.ElseIfDeclaration
  • CakePHP.ControlStructures.WhileStructures
  • CakePHP.Formatting.BlankLineBeforeReturn
  • CakePHP.Functions.ClosureDeclaration
  • CakePHP.NamingConventions.ValidFunctionName
  • CakePHP.NamingConventions.ValidTraitName
  • CakePHP.PHP.DisallowShortOpenTag
  • CakePHP.PHP.SingleQuote
  • CakePHP.WhiteSpace.EmptyLines
  • CakePHP.WhiteSpace.FunctionCallSpacing
  • CakePHP.WhiteSpace.FunctionClosingBraceSpace
  • CakePHP.WhiteSpace.FunctionOpeningBraceSpace
  • CakePHP.WhiteSpace.FunctionSpacing
  • CakePHP.WhiteSpace.TabAndSpace

Generic (25 sniffs)

  • Generic.Arrays.DisallowLongArraySyntax
  • Generic.CodeAnalysis.ForLoopShouldBeWhileLoop
  • Generic.CodeAnalysis.ForLoopWithTestFunctionCall
  • Generic.CodeAnalysis.JumbledIncrementer
  • Generic.CodeAnalysis.UnconditionalIfStatement
  • Generic.CodeAnalysis.UnnecessaryFinalModifier
  • Generic.ControlStructures.InlineControlStructure
  • Generic.Files.ByteOrderMark
  • Generic.Files.LineEndings
  • Generic.Files.LineLength
  • Generic.Formatting.DisallowMultipleStatements
  • Generic.Formatting.NoSpaceAfterCast
  • Generic.Functions.FunctionCallArgumentSpacing
  • Generic.NamingConventions.UpperCaseConstantName
  • Generic.PHP.DeprecatedFunctions
  • Generic.PHP.DisallowAlternativePHPTags
  • Generic.PHP.DisallowShortOpenTag
  • Generic.PHP.ForbiddenFunctions
  • Generic.PHP.LowerCaseConstant
  • Generic.PHP.LowerCaseKeyword
  • Generic.PHP.LowerCaseType
  • Generic.PHP.NoSilencedErrors
  • Generic.WhiteSpace.DisallowTabIndent
  • Generic.WhiteSpace.IncrementDecrementSpacing
  • Generic.WhiteSpace.ScopeIndent

PEAR (1 sniff)

  • PEAR.Functions.ValidDefaultValue

PSR1 (3 sniffs)

  • PSR1.Classes.ClassDeclaration
  • PSR1.Files.SideEffects
  • PSR1.Methods.CamelCapsMethodName

PSR12 (17 sniffs)

  • PSR12.Classes.AnonClassDeclaration
  • PSR12.Classes.ClassInstantiation
  • PSR12.Classes.ClosingBrace
  • PSR12.Classes.OpeningBraceSpace
  • PSR12.ControlStructures.BooleanOperatorPlacement
  • PSR12.ControlStructures.ControlStructureSpacing
  • PSR12.Files.DeclareStatement
  • PSR12.Files.FileHeader
  • PSR12.Files.ImportStatement
  • PSR12.Files.OpenTag
  • PSR12.Functions.NullableTypeDeclaration
  • PSR12.Functions.ReturnTypeDeclaration
  • PSR12.Keywords.ShortFormTypeKeywords
  • PSR12.Namespaces.CompoundNamespaceDepth
  • PSR12.Operators.OperatorSpacing
  • PSR12.Properties.ConstantVisibility
  • PSR12.Traits.UseDeclaration

PSR2 (9 sniffs)

  • PSR2.Classes.ClassDeclaration
  • PSR2.Classes.PropertyDeclaration
  • PSR2.ControlStructures.ElseIfDeclaration
  • PSR2.ControlStructures.SwitchDeclaration
  • PSR2.Files.ClosingTag
  • PSR2.Files.EndFileNewline
  • PSR2.Methods.FunctionCallSignature
  • PSR2.Methods.FunctionClosingBrace
  • PSR2.Methods.MethodDeclaration

SlevomatCodingStandard (32 sniffs)

  • SlevomatCodingStandard.Arrays.TrailingArrayComma
  • SlevomatCodingStandard.Classes.ClassConstantVisibility
  • SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces
  • SlevomatCodingStandard.Classes.ModernClassNameReference
  • SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment
  • SlevomatCodingStandard.Commenting.DocCommentSpacing
  • SlevomatCodingStandard.Commenting.EmptyComment
  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration
  • SlevomatCodingStandard.ControlStructures.AssignmentInCondition
  • SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch
  • SlevomatCodingStandard.ControlStructures.DisallowYodaComparison
  • SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses
  • SlevomatCodingStandard.ControlStructures.NewWithParentheses
  • SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator
  • SlevomatCodingStandard.Exceptions.DeadCatch
  • SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation
  • SlevomatCodingStandard.Namespaces.NamespaceDeclaration
  • SlevomatCodingStandard.Namespaces.UnusedUses
  • SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash
  • SlevomatCodingStandard.Namespaces.UseFromSameNamespace
  • SlevomatCodingStandard.Namespaces.UseSpacing
  • SlevomatCodingStandard.PHP.ShortList
  • SlevomatCodingStandard.PHP.TypeCast
  • SlevomatCodingStandard.PHP.UselessParentheses
  • SlevomatCodingStandard.PHP.UselessSemicolon
  • SlevomatCodingStandard.TypeHints.DeclareStrictTypes
  • SlevomatCodingStandard.TypeHints.LongTypeHints
  • SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
  • SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing
  • SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
  • SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable

Squiz (28 sniffs)

  • Squiz.Arrays.ArrayBracketSpacing
  • Squiz.Classes.ClassFileName
  • Squiz.Classes.LowercaseClassKeywords
  • Squiz.Classes.ValidClassName
  • Squiz.Commenting.DocCommentAlignment
  • Squiz.ControlStructures.ControlSignature
  • Squiz.ControlStructures.ForEachLoopDeclaration
  • Squiz.ControlStructures.ForLoopDeclaration
  • Squiz.ControlStructures.LowercaseDeclaration
  • Squiz.Functions.FunctionDeclaration
  • Squiz.Functions.FunctionDeclarationArgumentSpacing
  • Squiz.Functions.LowercaseFunctionKeywords
  • Squiz.Functions.MultiLineFunctionDeclaration
  • Squiz.Operators.ValidLogicalOperators
  • Squiz.PHP.DisallowSizeFunctionsInLoops
  • Squiz.PHP.Eval
  • Squiz.PHP.NonExecutableCode
  • Squiz.Scope.MemberVarScope
  • Squiz.Scope.MethodScope
  • Squiz.Scope.StaticThisUsage
  • Squiz.WhiteSpace.CastSpacing
  • Squiz.WhiteSpace.ControlStructureSpacing
  • Squiz.WhiteSpace.LanguageConstructSpacing
  • Squiz.WhiteSpace.LogicalOperatorSpacing
  • Squiz.WhiteSpace.ScopeClosingBrace
  • Squiz.WhiteSpace.ScopeKeywordSpacing
  • Squiz.WhiteSpace.SemicolonSpacing
  • Squiz.WhiteSpace.SuperfluousWhitespace

Zend (1 sniff)

  • Zend.NamingConventions.ValidVariableName