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

PHPCSStandards / PHPCSUtils / 155
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 22 Jan 2020 08:22PM UTC
Jobs 4
Files 13
Run time 8min
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

pending completion
155

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

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

1271 of 1311 relevant lines covered (96.95%)

58.07 hits per line

Jobs
ID Job ID Ran Files Coverage
29 155.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 22 Jan 2020 08:22PM UTC 0
93.96
Travis Job 155.29
30 155.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 22 Jan 2020 08:22PM UTC 0
94.72
Travis Job 155.30
31 155.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 22 Jan 2020 08:30PM UTC 0
92.99
Travis Job 155.31
32 155.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 22 Jan 2020 08:23PM UTC 0
93.44
Travis Job 155.32
Source Files on build 155
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #155
  • Pull Request #41
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