• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHPCSUtils / 179 / 29
97%
develop: 99%

Build:
LAST BUILD BRANCH: feature/ghactions-remark-ignore-release-links
DEFAULT BRANCH: develop
Ran 22 Jan 2020 11:34PM UTC
Files 17
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jan 2020 - 22:48 coverage: 94.672%. First build
LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0"

Pull #49

travis-ci-com

web-flow
Lists::isShortList(): fix compatibility with PHPCS < 2.8.0 [3]

PHPCS < 2.8.0 contained a bug where a square open bracket `[` directly following a closing curly would always be tokenized as `T_OPEN_SQUARE_BRACKET`, presuming this was array dereferencing/assignment on a variable variable.

If the closing curly however belonged to a control structure, this was incorrect and the token should have been changed to `T_OPEN_SHORT_ARRAY`.

This commit adds work-arounds to the utility method to handle the situation correctly.

Includes unit tests.

Ref: squizlabs/PHP_CodeSniffer 1284
Pull Request #49: New Utils\Lists class

1546 of 1633 relevant lines covered (94.67%)

17.08 hits per line

Source Files on job 179.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0")
  • Tree
  • List 17
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 66
  • Travis Job 179.29
  • 621abded on github
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc