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

PHPCSStandards / PHPCSUtils / 256
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 03 Feb 2020 02:09AM UTC
Jobs 4
Files 24
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
256

Pull #73

travis-ci-com

web-flow
BCFile::getCondition()/Conditions::getCondition(): sync with PHPCS 3.5.4 / new $first parameter

PHPCS 3.5.4 introduces a new `$first` parameter to the `File::getCondition()` function.

The PHPCSUtils `Conditions::getCondition()` already had a parameter for the same - `$reverse`, though the boolean values used were also the reverse of how the new `$first` parameter is implemented.

As PHPCSUtils is still in `alpha`, I'm making the executive decision to rename the parameter for the `Conditions::getCondition()`  function to `$first`, including reversing the meaning of the boolean values, to stay in line with PHPCS itself.

Includes adjusting any function calls in the existing codebase for the reversal of the meaning of the boolean.
Includes moving the unit tests covering this parameter, which were already in place in the test file for the `Conditions::getCondition()` function, to the test file for the `BCFile::getCondition()` function.
The actual tests will be run for both functions now.

Refs:
* https://github.com/squizlabs/PHP_CodeSniffer/commit/77c5fa2cd.
Pull Request #73: BCFile::getCondition()/Conditions::getCondition(): sync with PHPCS 3.5.4 / new $first parameter

16 of 16 new or added lines in 2 files covered. (100.0%)

2137 of 2207 relevant lines covered (96.83%)

65.31 hits per line

Jobs
ID Job ID Ran Files Coverage
29 256.29 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^2.0") 03 Feb 2020 02:08AM UTC 0
91.48
Travis Job 256.29
30 256.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 03 Feb 2020 02:08AM UTC 0
95.4
Travis Job 256.30
31 256.31 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^1.0") 03 Feb 2020 02:08AM UTC 0
90.64
Travis Job 256.31
32 256.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 03 Feb 2020 02:10AM UTC 0
94.94
Travis Job 256.32
Source Files on build 256
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #256
  • Pull Request #73
  • PR Base - develop (#254)
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