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

PHPCSStandards / PHPCSUtils / 208
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 23 Jan 2020 02:56AM UTC
Jobs 4
Files 18
Run time 2min
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
208

Pull #57

travis-ci-com

web-flow
Utils\Arrays: add new getOpenClose() utility method

This adds a new utility method:
* `getOpenClose()` - to retrieve the open and close brackets for a long/short array in a PHPCS cross-version compatible manner. Returns an array with an 'opener' and a 'closer' key or `false` if not a long/short array.
    While this may seem a simple operation, the method will save on code duplication for standards which need to do this in several sniffs.

Includes unit tests.
Pull Request #57: Utils\Arrays: add new getOpenClose() utility method

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

1710 of 1769 relevant lines covered (96.66%)

67.59 hits per line

Jobs
ID Job ID Ran Files Coverage
29 208.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 23 Jan 2020 02:56AM UTC 0
93.47
Travis Job 208.29
30 208.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 23 Jan 2020 02:58AM UTC 0
94.92
Travis Job 208.30
31 208.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 23 Jan 2020 02:56AM UTC 0
92.41
Travis Job 208.31
32 208.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 23 Jan 2020 02:58AM UTC 0
94.4
Travis Job 208.32
Source Files on build 208
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #208
  • Pull Request #57
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