You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (is_array($slug)) {
} elseif (is_string($slug)) {
$templates[] = $slug . '.php';
} else {
thrownewException('Name template part must be string or array.');
}
(16) Sniffs ForbiddenFunctions for class and methods
(17) Best function for escaping instead htmlspecialchars
The text was updated successfully, but these errors were encountered:
(21) Comment phpcs error
(14) Remove reference to values after foreach loop
Valid:
See: http://php.net/manual/ru/control-structures.foreach.php, https://www.toptal.com/php/10-most-common-mistakes-php-programmers-make
(13) Compact with https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
(12) Evaluation http://edorian.github.io/php-coding-standard-generator/
(11) Evaluation https://github.com/php-fig-rectified/psr2r-sniffer
(10) Evaluation https://styleci.readme.io/v1.0/docs/fixers project
(9) Evaluation
ArrayAssignmentRestrictions
sniff.Sniff contain inside
WordPress-Coding-Standards
.(8) New sniff:
YodaConditions
.(6) New rule:
RegExpDelimitersSniff
.https://secure.php.net/manual/ru/regexp.reference.delimiters.php
(4) New rule:
FunctionSpacing
.https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php
(3) New rule:
PreferDoubleQuote
.(2) New rule:
ScopePropertiesOrder
.As
ScopeMethodsOrder
(19) Add options whitelist function to EscapeOutputSniff and don't lint all build-in function return not string
Example: rand
(15) ConstrolSignature - Newline before close brace
(16) Sniffs ForbiddenFunctions for class and methods
(17) Best function for escaping instead htmlspecialchars
The text was updated successfully, but these errors were encountered: