Disallows using loose ==
and !=
comparison operators. Use ===
and !==
instead, they are much more secure and predictable.
Disallows using ++
and --
operators.
Checks if there is the same number of spaces after negation operator as expected.
Sniff provides the following settings:
spacesCount
: the number of spaces expected after the negation operator
Requires using combined assignment operators, eg +=
, .=
etc.
Reports ++
and --
operators not used standalone.
Enforces configurable number of spaces after the ...
operator.
Sniff provides the following settings:
spacesCountAfterOperator
: the number of spaces after the...
operator.