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

PHPCSStandards / PHP_CodeSniffer / 12057684915
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: catch-per-3.0
DEFAULT BRANCH: master
Ran 27 Nov 2024 08:21PM UTC
Jobs 8
Files 262
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

27 Nov 2024 08:19PM UTC coverage: 76.296% (+0.002%) from 76.294%
12057684915

push

github

jrfnl
Generic/OpeningFunctionBraceKernighanRitchie: improve error message

Follow up on 707

When there are multiple tabs between the end of the function signature and the open brace, the "found: $length" part of the error message would refer to the number of tabs found.

This is inconsistent with other sniffs and confusing.

This commit fixes this, while still maintaining the previous behaviour - as introduced via https://github.com/squizlabs/PHP_CodeSniffer/commit/c4b9807cd - of special casing the messaging for a single tab - independently of whether or not tab replacement is in effect.

Example for line 10 of test case file 2:
```
// Before:
Expected 1 space before opening brace; found 3

// After:
Expected 1 space before opening brace; found 11
```

Covered via pre-existing tests in both test case files + some additional new tests.

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

18755 of 24582 relevant lines covered (76.3%)

75.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 12057684915.1 27 Nov 2024 08:25PM UTC 0
0.18
GitHub Action Run
2 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 12057684915.2 27 Nov 2024 08:23PM UTC 0
1.08
GitHub Action Run
3 os-ubuntu-latest-php-8.4-custom-ini-false - 12057684915.3 27 Nov 2024 08:23PM UTC 0
74.75
GitHub Action Run
4 os-windows-latest-php-8.4-custom-ini-false - 12057684915.4 27 Nov 2024 08:21PM UTC 0
2.48
GitHub Action Run
5 os-ubuntu-latest-php-8.1-custom-ini-true - 12057684915.5 27 Nov 2024 08:23PM UTC 0
74.76
GitHub Action Run
6 os-ubuntu-latest-php-7.2-custom-ini-false - 12057684915.6 27 Nov 2024 08:25PM UTC 0
72.58
GitHub Action Run
7 os-windows-latest-php-7.2-custom-ini-false - 12057684915.7 27 Nov 2024 08:21PM UTC 0
2.01
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 12057684915.8 27 Nov 2024 08:23PM UTC 0
1.08
GitHub Action Run
Source Files on build 12057684915
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12057684915
  • b282c5f2 on github
  • Prev Build on 4.0 (#12048293772)
  • Next Build on 4.0 (#12091631222)
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