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

PHPCSStandards / PHP_CodeSniffer / 11641146220
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix/missing-static-token
DEFAULT BRANCH: master
Ran 02 Nov 2024 08:10AM 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 08:05AM UTC coverage: 74.353% (+0.009%) from 74.344%
11641146220

push

github

jrfnl
Generic/ConstructorName: minor efficiency tweak

As things were, the `$startIndex` would be the `function` keyword in the function declaration, which means that the complete declaration (parameters, defaults etc) would be walked, while we only really want to look _inside_ the function body.

Fixed by starting the `while` loop on the `scope_opener` instead.

Additionally, while the `$startIndex` would be moved forward on each loop, it would still examine one token too much (`scope_opener` cannot be a `T_DOUBLE_COLON`, `T_STRING` after `T_DOUBLE_COLON` cannot be a `T_DOUBLE_COLON`).
Also fixed now.

3 of 3 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-7.2-custom-ini-false - 11641146220.1 02 Nov 2024 08:12AM UTC 0
70.32
GitHub Action Run
2 php-8.3-custom-ini-false - 11641146220.2 02 Nov 2024 08:11AM UTC 0
72.9
GitHub Action Run
3 php-8.1-custom-ini-true - 11641146220.3 02 Nov 2024 08:10AM UTC 0
72.93
GitHub Action Run
Source Files on build 11641146220
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11641146220
  • 8fa62163 on github
  • Prev Build on 4.0 (#11622131117)
  • Next Build on 4.0 (#11641487587)
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