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

PHPCSStandards / PHP_CodeSniffer / 11641487587
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix/missing-static-token
DEFAULT BRANCH: master
Ran 02 Nov 2024 09:09AM UTC
Jobs 3
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

02 Nov 2024 09:04AM UTC coverage: 74.353%. Remained the same
11641487587

push

github

jrfnl
Generic/DuplicateClassName: performance fix

As things were, the sniff would unconditionally walk a complete file, making it one of the top 15 slowest sniffs.

However, OO structures in PHP cannot be nested, so once we've found an OO declaration, we can skip to the end of it before continuing the token walking. See: https://3v4l.org/pbSTG

This small tweak makes a significant difference in the sniff performance without any impact on the sniff results.

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

18186 of 24459 relevant lines covered (74.35%)

72.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.3-custom-ini-false - 11641487587.1 02 Nov 2024 09:09AM UTC 0
72.9
GitHub Action Run
2 php-7.2-custom-ini-false - 11641487587.2 02 Nov 2024 09:10AM UTC 0
70.32
GitHub Action Run
3 php-8.1-custom-ini-true - 11641487587.3 02 Nov 2024 09:09AM UTC 0
72.93
GitHub Action Run
Source Files on build 11641487587
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11641487587
  • bd0af7a7 on github
  • Prev Build on 4.0 (#11641146220)
  • Next Build on 4.0 (#11641536155)
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