Ran
|
Files
71
|
Run time
3s
|
Badge
Embed ▾
README BADGES
|
travis-ci
:sparkles: PHP 7.3: new sniff to detect trailing comma's in function calls, isset() and unset() Trailing comma's in function calls, method calls, `isset()` and `unset()` will be allowed as of PHP 7.3. Refs: * https://wiki.php.net/rfc/trailing-comma-function-calls * https://github.com/php/php-src/commit/b591c329e I've kept the name of the sniff relatively generic to allow for adding more constructs in the future in case trailing comma's will start to be allowed in, for instance, `list()`. Includes unit tests which are largely based on the example code in the RFC/unit tests in PHP core.
2857 of 3034 relevant lines covered (94.17%)
6.71 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|