consistence/coding-standard
PHP coding standard for Consistence projects: a ready-to-use PHP_CodeSniffer ruleset plus configuration to enforce consistent style, naming, and best practices across codebases. Easy to adopt in CI and local development to keep code clean and uniform.
Squiz.Arrays.ArrayDeclaration (#64)[@var](https://github.com/var) is not used for constants{[@inheritDoc](https://github.com/inheritDoc)} is not used[@var](https://github.com/var)[@return](https://github.com/return) and/or native return typehint in case the method body contains return with a valuearray, iterable and \Traversableempty()Squiz.WhiteSpace.ControlStructureSpacing since there should be no error codes left for checking (#38)float instead of double or real (#35)(binary) and (unset) typecasts (#36)empty() since it is magic (#37)DetectedCATCH -> DetectedCatch (#31)Generic.Arrays.ArrayIndent (#30)Consistence.Exceptions.ExceptionDeclaration checks exception rules from the standard (#19 thanks to @mhujer)
[@var](https://github.com/var) (#16)See respective PRs for details and reasons.
Generic.PHP.DisallowAlternativePHPTags sniffignoreNewlines for Squiz.WhiteSpace.ObjectOperatorSpacing to support multiline callsSquiz.Functions.MultiLineFunctionDeclaration has been reworked to work with return type hintsSquiz.Functions.MultiLineFunctionDeclaration.SpaceAfterBracket because it conflicts with return type hints in anonymous functions (function foo(): int {})Squiz.Commenting.FunctionComment.TypeHintMissing in your ruleset.How can I help you explore Laravel packages today?