Classes, interfaces and traits

HasPackageWithSubpackage

Validates whether a file, class, interface or trait always has a package if there is a subpackage present.

« More »

HasPackageWithSubpackageValidator

Validates whether a file, class, interface or trait always has a package if there is a subpackage present.

« More »

HasSinglePackage

Validates whether a file, class, interface or trait has not more than ! package tags.

« More »

HasSinglePackageValidator

Validates whether a file, class, interface or trait has not more than 1 package tags.

« More »

HasSingleSubpackage

Validates whether a file, class, interface or trait has not more than 1 subpackage tags.

« More »

HasSingleSubpackageValidator

Validates whether a file, class, interface or trait has not more than 1 subpackage tags.

« More »

Classes, interfaces and traits

AreAllArgumentsValid

Validates whether a function has a default return type in the docblock present.

« More »

AreAllArgumentsValidValidator

« More »

DoesArgumentNameMatchParam

Validates whether a function has a default return type in the docblock present.

« More »

DoesArgumentNameMatchParamValidator

« More »

DoesArgumentTypehintMatchParam

Checks the typehint of the argument versus the @param tag.

If the argument has no typehint we do not check anything. When multiple type are given then the typehint needs to be one of them.

« More »

DoesArgumentTypehintMatchParamValidator

« More »

DoesParamsExists

Validates whether a function has a default return type in the docblock present.

« More »

DoesParamsExistsValidator

« More »

IsArgumentInDocBlock

Validates whether a function has a missing argument in the docblock.

« More »

IsArgumentInDocBlockValidator

Validates if a Method or Function's arguments all have an accompanying param tag in the DocBlock.

« More »

IsParamTypeNotAnIdeDefault

Validates whether a function has a default param type in the docblock present.

« More »

IsParamTypeNotAnIdeDefaultValidator

Validates whether the type for a param tag with a Method or Function is not a known default.

Whenever this validator triggers then it means that someone forgot to replace the pseudo type generated by the IDE with the real type for the given parameter.

« More »

IsReturnTypeNotAnIdeDefault

Validates whether a function has a default return type in the docblock present.

« More »

IsReturnTypeNotAnIdeDefaultValidator

« More »

Classes, interfaces and traits

HasSummary

Detects whether a property has a summary, or an `@var` tag with a description.

« More »

HasSummaryValidator

Validates whether a property has a summary, or an `@var` tag with a description.

« More »