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

PHPCSStandards / PHPCSUtils / 155 / 29
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/upload-pages-artifact-5.0.0
DEFAULT BRANCH: develop
Ran 22 Jan 2020 08:22PM UTC
Files 13
Run time 4s
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 08:06PM UTC coverage: 93.962%. First build
LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0"

Pull #41

travis-ci-com

web-flow
UseStatements::splitImportUseStatement(): fix PHPCS cross-version compatibility

For this class to be compatible with PHPCS 2.6.0 - `master`, two work-arounds need to be added:
1. Prior to PHPCS 3.4.1 `function`/`const` in `use function`/`use const` tokenized as T_FUNCTION/T_CONST instead of T_STRING when there is a comment between the keywords.
2. When a `function` or `const` would be used as the alias - which is in fact a parse error as both are reserved keywords -, the semi-colon/use group close curly is tokenized as T_STRING instead of as the appropriate token.
    With certain code patterns, this is currently still the case.

The second case should be considered a total edge case and no guarantee is given that this is 100% sorted now.
Pull Request #41: New Utils\UseStatements class

1245 of 1325 relevant lines covered (93.96%)

14.34 hits per line

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

© 2026 Coveralls, Inc