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

PHPCSStandards / PHPCSUtils / 99
91%
develop: 100%

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

Pull #24

travis-ci-com

web-flow
:sparkles: New Utils\Scopes class

New `PHPCSUtils\Utils\Scopes` class which will hold methods related to the scoping of tokens.
This class is closely related to the `PHPCSUtils\Utils\Conditions` class in that it uses the `$tokens[$stackPtr]['conditions']` index.

This class initially contains the following four utility methods:
* `isOOProperty()` - to check if a `T_VARIABLE` token is a class/trait property. Returns true/false.
* `isOOConstant()` - to check if a `T_CONSTANT` token is a class/interface constant.  Returns true/false.
* `isOOMethod()` - to check if a `T_FUNCTION` token is a class/interface/trait method.  Returns true/false.
* `validDirectScope()` - to check the direct condition of an arbitrary token against a set of valid scope conditions. Returns the integer stackPtr to the direct condition if valid or false otherwise.

These methods were written by me and have been battle-tested in the past year or two in the PHPCompatibility standard.

Includes dedicated unit tests.
Pull Request #24: New Utils\Scopes class

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

760 of 837 relevant lines covered (90.8%)

52.73 hits per line

Jobs
ID Job ID Ran Files Coverage
29 99.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 22 Jan 2020 03:13AM UTC 0
86.86
Travis Job 99.29
30 99.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 22 Jan 2020 03:13AM UTC 0
87.46
Travis Job 99.30
31 99.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 22 Jan 2020 03:13AM UTC 0
85.66
Travis Job 99.31
32 99.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 22 Jan 2020 03:15AM UTC 0
85.35
Travis Job 99.32
Source Files on build 99
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #99
  • Pull Request #24
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