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

PHPCSStandards / PHPCSUtils / 111 / 29
96%
develop: 99%

Build:
LAST BUILD BRANCH: feature/ghactions-remark-ignore-release-links
DEFAULT BRANCH: develop
Ran 22 Jan 2020 05:18AM UTC
Files 10
Run time 1s
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 - 4:48 coverage: 92.259% (+0.1%) from 92.159%
LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0"

Pull #28

travis-ci-com

web-flow
ObjectDeclarations::getName(): improved handling of parse errors

While certain names may be invalid, such as construct names starting with a number, for the purpose of alerting users to these invalid names, the `getName()` method should be able to pick up on them.

The `getName()` method has now been adjusted to allow for such names.

The way this has been implemented also improves the parse error resilience for the `getName()` method.

The `getName()` method could previously inadvertently misidentify the name of a structure in the case of parse errors/live coding as it looked for the first `T_STRING` after the keyword without limiting it to the declaration statement. This has now also been fixed.

The method will now return `null`, both when passed  an anonymous class/function as well as in case of a parse error.

Included additional unit tests.
Pull Request #28: Objectdeclarations::getName(): various improvements

870 of 943 relevant lines covered (92.26%)

13.02 hits per line

Source Files on job 111.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0")
  • Tree
  • List 10
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 43
  • Travis Job 111.29
  • 85a894db on github
  • Prev Job for LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0" on feature/objectdeclarations-improve-getname (#109.29)
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