Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHPCSUtils / 179
97%
develop: 99%

Build:
LAST BUILD BRANCH: feature/ghactions-various-tweaks
DEFAULT BRANCH: develop
Ran 22 Jan 2020 11:34PM UTC
Jobs 4
Files 17
Run time 2min
Badge
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: 97.269%. First build
179

Pull #49

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-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

47 of 47 new or added lines in 1 file covered. (100.0%)

1567 of 1611 relevant lines covered (97.27%)

68.94 hits per line

Jobs
ID Job ID Ran Files Coverage
29 179.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 22 Jan 2020 11:34PM UTC 17
94.67
Travis Job 179.29
30 179.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 22 Jan 2020 11:36PM UTC 17
95.47
Travis Job 179.30
31 179.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 22 Jan 2020 11:34PM UTC 17
93.75
Travis Job 179.31
32 179.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 22 Jan 2020 11:36PM UTC 17
94.38
Travis Job 179.32
Source Files on build 179
  • Tree
  • List 17
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #179
  • Pull Request #49
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