| BestIt.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall |
You MUST use ::class instead of functions. |
no |
| BestIt.Classes.ModernClassNameReference.ClassNameReferencedViaMagicConstant |
You MUST use ::class instead of CLASS. |
no |
| BestIt.Commenting.ClassDoc.DocCommentUcFirst |
Every doc comment block SHOULD start ucfirst. |
no |
| BestIt.Commenting.ClassDoc.NoLineAfterDocComment |
Every doc comment block (the summary or a long description paragrah) SHOULD finish with double newline. |
no |
| BestIt.Commenting.ClassDoc.NoSummary |
There MUST be a summary. |
no |
| BestIt.Commenting.ClassDoc.SummaryTooLong |
The summary SHOULD be in one line. |
no |
| BestIt.Commenting.ConstantDoc.DocCommentUcFirst |
Every doc comment block SHOULD start ucfirst. |
no |
| BestIt.Commenting.ConstantDoc.NoLineAfterDocComment |
Every doc comment block (the summary or a long description paragrah) SHOULD finish with double newline. |
no |
| BestIt.Commenting.ConstantDoc.NoSummary |
There MUST be a summary. |
no |
| BestIt.Commenting.ConstantDoc.SummaryTooLong |
The summary SHOULD be in one line. |
no |
| BestIt.Commenting.EmptyLinesDoc.EmptyLinesFound |
There MUST be no redundant lines in your doc block. |
no |
| BestIt.Commenting.FunctionDoc.DocCommentUcFirst |
Every doc comment block SHOULD start ucfirst. |
no |
| BestIt.Commenting.FunctionDoc.NoLineAfterDocComment |
Every doc comment block (the summary or a long description paragrah) SHOULD finish with double newline. |
no |
| BestIt.Commenting.FunctionDoc.NoSummary |
There MUST be a summary. |
no |
| BestIt.Commenting.FunctionDoc.SummaryTooLong |
The summary SHOULD be in one line. |
no |
| BestIt.Commenting.PropertyDoc.DocCommentUcFirst |
Every doc comment block SHOULD start ucfirst. |
no |
| BestIt.Commenting.PropertyDoc.NoLineAfterDocComment |
Every doc comment block (the summary or a long description paragrah) SHOULD finish with double newline. |
no |
| BestIt.Commenting.PropertyDoc.NoSummary |
There MUST be a summary. |
no |
| BestIt.Commenting.PropertyDoc.SummaryTooLong |
The summary SHOULD be in one line. |
no |
| BestIt.Commenting.RedundantWhitespace.RedundantWhitespace |
There MUST be no additonal spaces around your doc tags. |
no |
| BestIt.Comparisons.EmptyArrayForComparison.EmptyArray |
You MUST not create an empty array, to check for an empty array. |
no |
| BestIt.Comparisons.EqualOperator.EqualOperatorFound |
You MUST use the "Identical" operator (===). |
yes |
| BestIt.Comparisons.ParasOfNegativeInstanceOf.ParasAroundNegativeInstanceOfMissing |
You MUST provide parentheses around your negative instanceof check. |
no |
| BestIt.DocTags.AuthorTag.TagContentFormatInvalid |
You MUST commit to your codes and give an author tag. |
no |
| BestIt.DocTags.DeprecatedTag.MissingDates |
The error code for the missing dates. |
no |
| BestIt.DocTags.DeprecatedTag.TagContentFormatInvalid |
If you provide a deprecated tag, you MUST provide it with versions since when its deprecated and when it will be removed. |
no |
| BestIt.DocTags.DisallowedClassTags.TagNotAllowed |
You MUST not give one of the disallowed tags in your doc comment. |
no |
| BestIt.DocTags.DisallowedConstantTags.TagNotAllowed |
You MUST not give one of the disallowed tags in your doc comment. |
no |
| BestIt.DocTags.DisallowedMethodTags.TagNotAllowed |
You MUST not give one of the disallowed tags in your doc comment. |
no |
| BestIt.DocTags.DisallowedPropertyTags.TagNotAllowed |
You MUST not give one of the disallowed tags in your doc comment. |
no |
| BestIt.DocTags.PackageTag.TagContentFormatInvalid |
You MUST provide a special tag format. |
no |
| BestIt.DocTags.PackageTag.WrongPackage |
If there is a namespace, you MUST provide this namespace as package tag. |
no |
| BestIt.DocTags.ParamTag.MissingDesc |
You SHOULD provide a description for your parameter. |
no |
| BestIt.DocTags.ParamTag.MissingType |
You MUST provide a type for your param tag. |
no |
| BestIt.DocTags.ParamTag.MissingVariable |
Your method MUST have a matching variable for your param tag. |
no |
| BestIt.DocTags.ParamTag.MissingVariables |
Your method MUST have parameters if there is a param tag. |
no |
| BestIt.DocTags.ParamTag.MixedType |
You SHOULD prevent the mixed type and try to provide native types. |
no |
| BestIt.DocTags.ParamTag.TagContentFormatInvalid |
You MUST provide a special tag format. |
no |
| BestIt.DocTags.RequiredClassTags.TagOccurrenceMax |
You MUST provide only the maximum amount of required tags. For example, only one return per method is allowed. The error is registered for every tag specifically. |
no |
| BestIt.DocTags.RequiredClassTags.TagOccurrenceMin |
You MUST provide the required tags. The error is registered for every tag specifically. |
no |
| BestIt.DocTags.RequiredMethodTags.TagOccurrenceMax |
You MUST provide only the maximum amount of required tags. For example, only one return per method is allowed. The error is registered for every tag specifically. |
no |
| BestIt.DocTags.RequiredMethodTags.TagOccurrenceMin |
You MUST provide the required tags. The error is registered for every tag specifically. |
no |
| BestIt.DocTags.RequiredPropertyTags.TagOccurrenceMax |
You MUST provide only the maximum amount of required tags. For example, only one return per method is allowed. The error is registered for every tag specifically. |
no |
| BestIt.DocTags.RequiredPropertyTags.TagOccurrenceMin |
You MUST provide the required tags. The error is registered for every tag specifically. |
no |
| BestIt.DocTags.TagSorting.MissingNewlineBetweenTags |
You SHOULD separate tag groups and the final return with a newline. |
yes by class |
| BestIt.DocTags.TagSorting.WrongTagSorting |
You SHOULD sort the tags by their occurrence and then alphabetically, but @return SHOULD be the last. |
yes by class |
| BestIt.DocTags.ThrowsTag.MissingThrowDescription |
You SHOULD provide a description your throw tag. |
no |
| BestIt.DocTags.ThrowsTag.TagContentFormatInvalid |
You MUST provide a special tag format. |
no |
| BestIt.DocTags.VarTag.TagContentFormatInvalid |
You MUST provide a type for your var tag. |
no |
| BestIt.DocTags.VersionTag.TagContentFormatInvalid |
If you provide a version tag, you MUST provide it in semver 2.0-Format with Major.Minor.Patch-Version . |
no |
| BestIt.Formatting.AlphabeticClassContent.SortAlphabetically |
You SHOULD sort you constants, methods and properties alphabetically. |
no |
| BestIt.Formatting.AlphabeticallySortedUses.IncorrectlyOrderedUses |
You MUST provide your imports in alphabetically order, PSR-12 compatible. |
no |
| (BestIt.Formatting.NoWhitespaceAfterClassOpening.IncorrectEmptyLinesAfterOpeningBrace |
There MUST be no lines after the opening brace. |
no |
| (BestIt.Formatting.NoWhitespaceAfterClassOpening.IncorrectEmptyLinesBeforeClosingBrace |
There MUST be no lines before the closing brace. |
no |
| BestIt.Formatting.OpenTag.LineNotEmpty |
The next line after the open tag MUST be empty. |
no |
| BestIt.Formatting.OpenTag.NoSpaceAfterOpenTag |
There MUST be whitespace after the open tag. |
no |
| BestIt.Formatting.OpenTag.OpenTagNotFirstStatement |
After the open tag there MUST be an empty line. |
no |
| BestIt.Formatting.ReturnTypeHintSpacingSniff.NoSpaceBetweenColonAndTypeHint |
There MUST be no whitespace after the return type colon. |
| BestIt.Formatting.ReturnTypeHintSpacingSniff.WhitespaceBeforeColon |
There MUST be no whitespace before the return type colon. |
| BestIt.Formatting.TrailingArrayComma.MissingTrailingComma |
You MUST add a trailing comma to your multi line arrays. |
no |
| BestIt.Formatting.TrailingCommaInDeclaration.MissingTrailingComma |
Enforces a trailing command in method declaration if there is a line wrap. |
no |
| BestIt.Formatting.TraitUseDeclaration.MultipleTraitsPerDeclaration |
You MUST provide only one "use" per Line for importing traits etc. in classes. |
no |
| BestIt.Formatting.UCVFSorting.WrongPosition |
You MUST sort the contents of your classes, traits, interface, etc. in the following order: T_USE, T_CONST, T_VARIABLE, T_FUNCTION. |
no |
| BestIt.Functions.FluentSetter.MustReturnThis |
Every setter function MUST return $this if nothing else is returned. |
no |
| BestIt.Functions.FluentSetter.NoReturnFound |
Your method MUST contain a return. |
yes |
| BestIt.Functions.ForbiddenFunctions.Discouraged |
You SHOULD not use eval. |
yes |
| BestIt.Functions.ForbiddenFunctions.DiscouragedWithAlternative |
You SHOULD not use alias but the original function names. |
yes |
| BestIt.Functions.MultipleReturn.MultipleReturnsFound |
You SHOULD only use a return per method. |
no |
| BestIt.Functions.NoNamedArguments.DisallowedNamedArgument |
You MUST not use named arguments. |
no |
| BestIt.Functions.NoSimplePropertyMethod.ShouldUseTypedPropertyDirectly |
You SHOULD use the typed property directly instead of the the simple getter-/setter-combination. |
yes |
| BestIt.Functions.TrailingCommaInCall.MissingTrailingComma |
You MUST append a trailing command in your multi line function calls. |
no |
| BestIt.NamingConventions.CamelCaseVariable.NotCamelCase |
You MUST provide your vars in camel case, lower case first. |
yes |
| BestIt.Spacing.ClassMemberSpacing.IncorrectCountOfBlankLinesBetweenMembers |
Class members MUST be separated with one line. |
no |
| BestIt.Spacing.ConstantSpacing.IncorrectCountOfBlankLinesAfterConstant |
A constant MUST be separated with one line. |
no |
| BestIt.Spacing.NamespaceSpacing.IncorrectLinesCountAfterNamespace |
There MUST be one line after the namespace. |
no |
| BestIt.Spacing.NamespaceSpacing.IncorrectLinesCountBeforeNamespace |
There MUST be one line before the namespace. |
no |
| BestIt.Spacing.PropertySpacing.IncorrectCountOfBlankLinesAfterProperty |
There MUST be one line after a property. |
no |
| BestIt.Spacing.SpaceAfterDeclare.GroupBlankLineFound |
Multiple declare-statements SHOULD be grouped without a blank line. |
no |
| BestIt.Spacing.SpaceAfterDeclare.MuchWhitespaceFound |
THERE MUST be just one single line after the declare statement. |
no |
| BestIt.Spacing.SpaceAfterDeclare.NoWhitespaceFound |
There MUST be one empty line after declare-statement. |
no |
| BestIt.Spacing.SpaceAroundConcat.MissingSpaceAroundConcat |
You MUST wrap your concat-dot with a whitespace char. |
no |
| BestIt.Spacing.TraitUseSpacing.IncorrectLinesCountAfterLastUse |
You MUST not provide additional lines after your last rait usage. |
no |
| BestIt.Spacing.TraitUseSpacing.IncorrectLinesCountBeforeFirstUse |
You MUST not provide additional new lines before your first trait use. |
no |
| BestIt.Spacing.TraitUseSpacing.IncorrectLinesCountBetweenUses |
You MUST not provide additional new lines between trait usages. |
no |
| BestIt.Spacing.UseSpacing.IncorrectLinesCountAfterLastUse |
There MUST be one line after the last usage. |
no |
| BestIt.Spacing.UseSpacing.IncorrectLinesCountBeforeFirstUse |
There MUST be one line before the first usage. |
no |
| BestIt.Spacing.UseSpacing.IncorrectLinesCountBetweenDifferentTypeOfUse |
There must be no line betweeen different usages. |
no |
| BestIt.Spacing.UseSpacing.IncorrectLinesCountBetweenSameTypeOfUse |
The MUST be no line between same usages. |
no |
| BestIt.Strings.ConcatCalculationSniff.CalculationWithoutBrackets |
You MUST encapsulate your calculation with brackets. |
no |
| BestIt.TypeHints.ExplicitAssertions.RequiredExplicitAssertion |
Use assertion instead of inline documentation comment. |
no |
| BestIt.TypeHints.PropertyTypeHint.MissingAnyTypeHint |
MUST have any type hint if possible. |
yes |
| BestIt.TypeHints.PropertyTypeHint.MissingNativeTypeHint |
MUST have a native type hint (matching the doc block.) |
yes |
| BestIt.TypeHints.ReturnTypeDeclaration.MissingReturnTypeHint |
Every function or method MUST have a type hint if the return annotation is valid. |
yes |
| BestIt.TypeHints.SuggestExplicitReturnType.MixedType |
You SHOULD not use a mixed type but an explicit native return type. |
yes |
| Generic.Formatting.SpaceAfterCast |
There MUST be a space after cast. |
| Generic.Arrays.DisallowLongArraySyntax |
Every array syntax MUST be in short array syntax. |
| SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility |
Constants MUST be marked with a visibility. |
| SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName |
No class may be used via its FQCN. You MUST import every class! |
| SlevomatCodingStandard.TypeHints.DeclareStrictTypes |
Every file MUST have "declare(strict_types=1);" two line breaks after the opening tag. There MUST be no spaces aroung the equal-sign. |
| Squiz.Strings.DoubleQuoteUsage |
Every String MUST be wrapped with single quotes. |