This list contains ninety four rules, in six categories.
The following rules signal possible mistakes in the code.
- [no-dangling-reference] (no-dangling-reference.md) -
The following rules are common sense practices that help avoid bugs or conflicts.
- [always-have-visibility] (always-have-visibility.md) -
- [always-typehint] (always-typehint.md) -
- [avoid-redefining-properties] (avoid-redefining-properties.md) -
- [avoid-those-functions] (avoid-those-functions.md) -
- [commented-fallthrough] (commented-fallthrough.md) -
- [compatible-typehint] (compatible-typehint.md) -
- [constant-condition] (constant-condition.md) -
- [declares-or-executes] (declares-or-executes.md) -
- [definitions-only] (definitions-only.md) -
- [imported-collision] (imported-collision.md) -
- [lowercase-keyword] (lowercase-keyword.md) -
- [no-array_merge-in-loop] (no-array_merge-in-loop.md) -
- [no-assign-null-method] (no-assign-null-method.md) -
- [no-catch-overwrite] (no-catch-overwrite.md) -
- [no-commented-code] (no-commented-code.md) -
- [no-curly-array] (no-curly-array.md) -
- [no-dead-code] (no-dead-code.md) -
- [no-deep-definitions] (no-deep-definitions.md) -
- [no-double-quote] (no-double-quote.md) -
- [no-duplicate-case] (no-duplicate-case.md) -
- [no-duplicate-key] (no-duplicate-key.md) -
- [no-duplicated-code] (no-duplicated-code.md) -
- [no-empty-blocks] (no-empty-blocks.md) -
- [no-empty-catch] (no-empty-catch.md) -
- [no-executable] (no-executable.md) -
- [no-exit] (no-exit.md) -
- [no-extra-argument] (no-extra-argument.md) -
- [no-global] (no-global.md) -
- [no-goto] (no-goto.md) -
- [no-hardcoded-path] (no-hardcoded-path.md) -
- [no-incompilable] (no-incompilable.md) -
- [no-isolated-block] (no-isolated-block.md) -
- [no-missing-argument] (no-missing-argument.md) -
- [no-mixed-incrementations] (no-mixed-incrementations.md) -
- [no-multiple-instruction-per-line] (no-multiple-instruction-per-line.md) -
- [no-nested-ternary] (no-nested-ternary.md) -
- [no-noscream] (no-noscream.md) -
- [no-obsolete-directives] (no-obsolete-directives.md) -
- [no-obsolete-extensions] (no-obsolete-extensions.md) -
- [no-php4-constructor] (no-php4-constructor.md) -
- [no-references-on-objects] (no-references-on-objects.md) -
- [no-reserved-keywords] (no-reserved-keywords.md) -
- [no-return-void] (no-return-void.md) -
- [no-static-this] (no-static-this.md) -
- [no-switch-with-multiple-default] (no-switch-with-multiple-default.md) -
- [no-switch-without-default] (no-switch-without-default.md) -
- [no-undefined-properties] (no-undefined-properties.md) -
- [no-undefined-variables] (no-undefined-variables.md) -
- [no-unresolved-instanceof] (no-unresolved-instanceof.md) -
- [no-unresolved-use] (no-unresolved-use.md) -
- [no-unused-arguments] (no-unused-arguments.md) -
- [no-unused-method] (no-unused-method.md) -
- [no-unused-property] (no-unused-property.md) -
- [no-unused-variable] (no-unused-variable.md) -
- [no-useless-argument-reference] (no-useless-argument-reference.md) -
- [no-useless-final] (no-useless-final.md) -
- [no-useless-instruction] (no-useless-instruction.md) -
- [no-useless-math] (no-useless-math.md) -
- [no-useless-unset] (no-useless-unset.md) -
- [no-useless-use] (no-useless-use.md) -
- [one-class-per-file] (one-class-per-file.md) -
- [properties-always-used-locally] (properties-always-used-locally.md) -
- [strict-comparisons] (strict-comparisons.md) -
- [use-const] (use-const.md) -
- [use-constant-not-function] (use-constant-not-function.md) -
- [use-object-api] (use-object-api.md) -
- [use-self] (use-self.md) -
The following rules are help strengthening the security of your application.
- [no-debug] (no-debug.md) -
- [no-eval] (no-eval.md) -
- [no-hardcoded-credential] (no-hardcoded-credential.md) -
- [no-sleep] (no-sleep.md) -
The following rules are extracted from the manual.
- [all-unique-arguments] (all-unique-arguments.md) -
- [always-compare-with-triple] (always-compare-with-triple.md) -
- [argument-with-default-at-the-end] (argument-with-default-at-the-end.md) -
- [no-aliases] (no-aliases.md) -
- [no-deprecated] (no-deprecated.md) -
- [no-incompatible-reference] (no-incompatible-reference.md) -
- [no-letter-logical] (no-letter-logical.md) -
- [no-parenthesis-for-print] (no-parenthesis-for-print.md) -
- [no-reassign-references] (no-reassign-references.md) -
- [no-short-tags] (no-short-tags.md) -
- [no-unnecessary-string-concatenation] (no-unnecessary-string-concatenation.md) -
- [not-with-parenthesis] (not-with-parenthesis.md) -
The following rules are common coding conventions. They don't change PHP code, but will impact coding and understanding.
- [no-bracketless-blocks] (no-bracketless-blocks.md) -
The following rules will speed up the code execution.
- [always-preprocess] (always-preprocess.md) -
- [avoid-those-slow-functions] (avoid-those-slow-functions.md) -
- [echo-with-comma] (echo-with-comma.md) -
- [no-debug-code] (no-debug-code.md) -
- [no-functioncall-in-loop] (no-functioncall-in-loop.md) -
- [no-recalculate] (no-recalculate.md) -
- [no-repeated-print] (no-repeated-print.md) -
- [no-uninitialized-variable] (no-uninitialized-variable.md) -
- [no-unnecessary-conversion] (no-unnecessary-conversion.md) -