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

PHPCSStandards / PHPCSUtils / 232
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 23 Jan 2020 06:19AM UTC
Jobs 4
Files 22
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
232

Pull #64

travis-ci-com

web-flow
Abstracts\AbstractArrayDeclarationSniff: new `getActualArrayKey()` method

This is a helper method which can optionally be used from the `processKey()` method to retrieve the actual array key value based on the array key rules used in PHP.

* Array keys can only be integers or strings.
* Purely numeric (integer) string keys will automatically be cast to integer.

Dynamic array keys using variables, constants or function calls to set the key are ignored.

The method will return the integer or string array key or void for when the array key could not be determined.

Includes dedicated unit tests.
Pull Request #64: New `Abstracts\AbstractArrayDeclarationSniff`

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

1946 of 2015 relevant lines covered (96.58%)

65.2 hits per line

Jobs
ID Job ID Ran Files Coverage
29 232.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 23 Jan 2020 06:19AM UTC 0
91.39
Travis Job 232.29
30 232.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 23 Jan 2020 06:20AM UTC 0
95.01
Travis Job 232.30
31 232.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 23 Jan 2020 06:20AM UTC 0
90.46
Travis Job 232.31
32 232.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 23 Jan 2020 06:21AM UTC 0
94.47
Travis Job 232.32
Source Files on build 232
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #232
  • Pull Request #64
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