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

PHPCSStandards / PHPCSUtils / 233
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 23 Jan 2020 06:35AM 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
233

Pull #65

travis-ci-com

web-flow
:sparkles: New Fixers\SpacesFixer class

This new class offers one versatile utility function `checkAndFix()` to - as the name implies - check and fix the spacing between two tokens.

It takes all the heavy lifting out of space fixes and should allow standards to get rid of a lot of duplicate code related to space fixing.

Notes:
- This method will not auto-fix if there is anything but whitespace between the two tokens. In that case, it will throw a non-fixable error/warning.
- If 'newline' is expected and _no_ new line is encountered, a new line will be added, but no assumptions will be made about the intended indentation of the code.
    This should be handled by a (separate) indentation sniff.
- If 'newline' is expected and multiple new lines are encountered, this will be accepted as valid.
    No assumptions are made about whether additional blank lines are allowed or not.
    If _exactly_ one line is desired, combine this Fixer with the (upcoming) `NewlinesFixer`.
- This method can optionally record a metric for this check which will be displayed when the end-user requests the `info` report.

Includes extensive unit tests.
Pull Request #65: New Fixers\SpacesFixer class

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

1943 of 2006 relevant lines covered (96.86%)

68.44 hits per line

Jobs
ID Job ID Ran Files Coverage
29 233.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 23 Jan 2020 06:35AM UTC 0
91.7
Travis Job 233.29
30 233.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 23 Jan 2020 06:35AM UTC 0
95.34
Travis Job 233.30
31 233.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 23 Jan 2020 06:36AM UTC 0
90.84
Travis Job 233.31
32 233.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 23 Jan 2020 06:37AM UTC 0
94.86
Travis Job 233.32
Source Files on build 233
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #233
  • Pull Request #65
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