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

PHPCSStandards / PHP_CodeSniffer / 11587556685
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/parse-error/File.getMethodProperties
DEFAULT BRANCH: master
Ran 30 Oct 2024 05:30AM 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

30 Oct 2024 05:25AM UTC coverage: 74.179% (+0.005%) from 74.174%
11587556685

push

github

jrfnl
Generic/ConstructorName: fix minor bug

This commit fixes a minor bug in `Generic.NamingConventions
.ConstructorName` when checking if a given class has a parent. The code
was checking if the lower case version of the value returned by
`File::findExtendedClassName()`` is `false`. The problem is that
`strtolower()` never returns `false`, it always returns a `string`.
Thus, the condition would never evaluate to `true` and the sniff would
not bail at this point when a given class has no parent.

This did not cause any issues to the sniff, even for invalid code, as
there is not a scenario where a class method can have a `T_DOUBLE_COLON`
token followed by a `T_STRING` token with an empty `content`. This is
true even for empty strings as PHPCS includes the quotes in the
`content`.

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

18136 of 24449 relevant lines covered (74.18%)

72.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.1-custom-ini-true - 11587556685.1 30 Oct 2024 05:30AM UTC 262
72.75
GitHub Action Run
2 php-8.3-custom-ini-false - 11587556685.2 30 Oct 2024 05:30AM UTC 262
72.73
GitHub Action Run
3 php-7.2-custom-ini-false - 11587556685.3 30 Oct 2024 05:31AM UTC 262
70.14
GitHub Action Run
Source Files on build 11587556685
  • Tree
  • List 262
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11587556685
  • 35146fe8 on github
  • Prev Build on 4.0 (#11587290919)
  • Next Build on 4.0 (#11588295169)
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

© 2025 Coveralls, Inc