Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Download tar.gz
298.55 KB
MD5: 612fca9cbf28dbe6e7113f0d4c064a7c
SHA-1: 6a4013a5a3596e151fa8cf8c586fb983ca315f0c
SHA-256: 3492b74a9ae8971a75ef6b6dade0dd20f7c0a59832aff23a16c043160cbb0c41
Download zip
419.04 KB
MD5: 7ace3ec2d2a4478525ff28aa53b03fe5
SHA-1: 3cf238e3c600d354d29f3c1626640b8103fb01f8
SHA-256: 0fc3a94be36aa7dda52f4620aac428286ef91272e9977af9002e4142c6c3fd09
Release notes
This release contains mostly fixes for Coder Sniffer.
Changes since 7.x-2.0-beta2:
- Array data type in @param/@return must be lower case.
- fix finding git path when it is the drupal root
- Added a sniff for deprecated PHP functions.
- #1926878: Fixed inline if tokens and PHP 5.3 '?:' notation.
- #1933378 by rballou: Fixed STDIN issue with FileEndSniff.
- #1889130 by ceng: Fixed PHP 5.2 compatibility.
- #1926870 by JulienD: Fixed Specifying files extension with drush does not work and send back a false positive.
- #1922066: Removed alphabetical ordering of CSS properties according to the new CSS coding standards.
- Fixed closing curly brace sniff for methods.
- unlink() is not a function alias as falsely reported by http://php.net/manual/en/aliases.php.
- Added a sniff to detect invalid constant names in module files.
- Added a warning for t() calls with variables instead of literal strings.
- rewind() is not an alias function.
- Added detection of code after return statements that will never be executed. Sniff referenced from Squiz.
- @param data type 'str' should be 'string'.
- #1779020 by danquah, Désiré: Fixed Invalid match for 'Using the e flag in preg_match()'.
- Added a check for empty strings passed to t().
- Blank lines after case statements are allowed, so disable that error from Squiz.
- #1366822: Remove rule about <br>: remove rule about br
- Use a warning instead of an error if a constant name does not match, there could be false positives.
- Fixed false positives when ?: operator is used.
- #1879768 : Fixed Allow {@inheritdoc} in PHPDoc blocks.