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

PHPCSStandards / PHP_CodeSniffer / 8109426298
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/fixer-conflict/PSR12.Functions.ReturnTypeDeclaration
DEFAULT BRANCH: master
Ran 01 Mar 2024 09:45AM UTC
Jobs 3
Files 259
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

01 Mar 2024 09:41AM UTC coverage: 72.312%. Remained the same
8109426298

push

github

jrfnl
Various sniffs: simplify skipping the rest of the file

This commit updates various sniffs to use `return $phpcsFile->numTokens` instead of `return ($phpcsFile->numTokens + 1)`.

If a sniff file contains 50 tokens, the last `$stackPtr` will be 49, so returning `50` will already get us passed the end of the token stack and the `+ 1` is redundant.

25 of 34 new or added lines in 19 files covered. (73.53%)

17339 of 23978 relevant lines covered (72.31%)

55.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
75.47
0.0% src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php
1
90.48
0.0% src/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php
2
0.0
0.0% src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php
2
0.0
0.0% src/Standards/Zend/Sniffs/Debug/CodeAnalyzerSniff.php
3
91.29
0.0% src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
Jobs
ID Job ID Ran Files Coverage
1 php-8.1-custom-ini-true - 8109426298.1 01 Mar 2024 09:45AM UTC 259
70.83
GitHub Action Run
2 php-8.3-custom-ini-false - 8109426298.2 01 Mar 2024 09:45AM UTC 259
70.81
GitHub Action Run
3 php-7.2-custom-ini-false - 8109426298.3 01 Mar 2024 09:46AM UTC 259
68.48
GitHub Action Run
Source Files on build 8109426298
  • Tree
  • List 259
  • Changed 22
  • Source Changed 22
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8109426298
  • 953b5135 on github
  • Prev Build on 4.0 (#8058941054)
  • Next Build on 4.0 (#8109582243)
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