This sniff detects for-loops that use a function call in the test expression. Insight Class: PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff # For loop with test function call ^1.0 Code\Code This sniff detects for-loops that can be simplified to a while-loop Insight Class: PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff # For loop should be While loop ^1.0 Code\Code Insight Class: PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyPHPStatementSniff # Empty Statement ^1.0 Code\Code Checks against an empty PHP open - close tag combination.Checks against two semi-colons with no executable code in between.\ PHP_CodeSniffer \Standards \Generic \Sniffs \Arrays \ArrayIndentSniff : : class = > # Empty PHP statement ^1.0 Code\Code Insight Class: ObjectCalisthenics\Sniffs\NamingConventions\ElementNameMinimalLengthSniff Configuration Insight Class: PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LanguageConstructSpacingSniff # Element name minimal length >=1.0 <2.0 Code\Code configurable This sniff ensures all language constructs contain a single space between themselves and their content Insight Class: PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\SwitchDeclarationSniff # Language Construct spacing ^1.0 Code\Code This sniff ensures all switch statements are defined correctly. Insight Class: PHP_CodeSniffer\Standards\Zend\Sniffs\Debug\CodeAnalyzerSniff # Switch declaration ^1.0 Code\Code This sniff runs the Zend Code Analyzer (from Zend Studio) on files. Insight Class: SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff # Code Analyzer ^1.0 Code\Code Insight Class: PhpCsFixer\Fixer\ClassNotation\ProtectedToPrivateFixer # Unused variable ^1.0 Code\Code This fixer converts protected variables and methods to private where possible. Insight Class: SlevomatCodingStandard\Sniffs\Classes\UselessLateStaticBindingSniff # Protected to private ^1.10 Code\Classes This sniff reports useless late static binding. Insight Class: SlevomatCodingStandard\Sniffs\Classes\ModernClassNameReferenceSniff # Useless Late Static Binding ^1.0 Code\Classes Class names should be referenced via ::class constant when possible. This sniff reports use of _CLASS_, get_parent_class(), get_called_class(), get_class() and get_class($this). Insight Class: SlevomatCodingStandard\Sniffs\Classes\DisallowLateStaticBindingForConstantsSniff # Modern ClassName reference ^1.0 Code\Classes This sniff disallows late static binding for constants. Insight Class: SlevomatCodingStandard\Sniffs\Classes\ClassConstantVisibilitySniff # Disallow Late static Binding for constants ^1.0 Code\Classes This sniff requires declaring visibility for all class constants. Insight Class: PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\PropertyDeclarationSniff # Class constant visibility ^1.0 Code\Classes This sniff verifies that properties are declared correctly. Insight Class: PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnnecessaryFinalModifierSniff # Property declaration ^1.0 Code\Classes This sniff detects unnecessary final modifiers inside of final classes. Insight Class: NunoMaduro\PhpInsights\Domain\Sniffs\ForbiddenSetterSniff # Unnecessary Final modifier ^1.0 Code\Classes Insight Class: SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff # Forbidden setter ^1.0 Code\Classes This sniff detects unused private elements Insight Class v1.0: ObjectCalisthenics\Sniffs\Classes\ForbiddenPublicPropertySniff Insight Class v2.0: SlevomatCodingStandard\Sniffs\Classes\ForbiddenPublicPropertySniff # Unused private elements ^1.0 Code\Classes # Forbidden public property ^1.0 Code\Classes NunoMaduro\PhpInsights\Domain\Metrics\Code\Globally Code\Globally.NunoMaduro\PhpInsights\Domain\Metrics\Code\Functions Code\Functions.NunoMaduro\PhpInsights\Domain\Metrics\Code\Comments Code\Comments.NunoMaduro\PhpInsights\Domain\Metrics\Code\Code Code\Code.NunoMaduro\PhpInsights\Domain\Metrics\Code\Classes Code\Classes.The following insights are organised in different metrics : No multiline whitespace around double arrow.Require only standalone increment and decrement operators.Unused Inherited variable passed to closure.Disallow continue without integer operand in switch.Disallow Late static Binding for constants.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |