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

PHPCSStandards / PHP_CodeSniffer / 11641146220 / 2
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix/missing-static-token
DEFAULT BRANCH: master
Ran 02 Nov 2024 08:13AM UTC
Files 262
Run time 6s
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: 72.902% (+0.01%) from 72.892%
11641146220.2

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.

17710 of 24293 relevant lines covered (72.9%)

24.33 hits per line

Source Files on job php-8.3-custom-ini-false - 11641146220.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11641146220
  • 8fa62163 on github
  • Prev Job for on 4.0 (#11622131117.3)
  • Next Job for on 4.0 (#11641487587.2)
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