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

PHPCSStandards / PHP_CodeSniffer / 13243783968
79%

Build:
DEFAULT BRANCH: master
Ran 10 Feb 2025 03:02PM UTC
Jobs 8
Files 309
Run time 13386min
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

10 Feb 2025 02:59PM UTC coverage: 78.441% (+0.03%) from 78.407%
13243783968

push

github

jrfnl
Squiz/FunctionDeclarationArgumentSpacing: handle modifiers for constructor property promotion

The spacing after visibility/`readonly` modifiers for constructor property promotion were so far not checked by this sniff.

While the `Squiz.WhiteSpace.ScopeKeywordSpacing` sniff will already handle this, that sniff may not be in use in all standards using this sniff. As things were, this sniff was just no longer feature complete for the task this sniff is supposed to handle: spacing of function declaration arguments.

This commit adds handling the spacing after modifiers used for constructor property promotion to this sniff.

The spacing requirements are aligned with the spacing expectations of the `Squiz.WhiteSpace.ScopeKeywordSpacing` sniff, so the sniffs should not conflict with each other.

Additionally, the new checks in this sniff have dedicated error codes, which means that - if there would be a conflict anywhere - the modifier spacing checks within this sniff can easily be turned off.

Includes tests.

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

24607 of 31370 relevant lines covered (78.44%)

65.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-5.4-custom-ini-false - 13243783968.1 10 Feb 2025 03:27PM UTC 309
1.27
GitHub Action Run
2 os-ubuntu-latest-php-8.4-custom-ini-false - 13243783968.2 10 Feb 2025 03:04PM UTC 309
73.87
GitHub Action Run
3 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13243783968.3 10 Feb 2025 03:04PM UTC 309
1.7
GitHub Action Run
4 os-ubuntu-latest-php-7.2-custom-ini-true - 13243783968.4 10 Feb 2025 03:06PM UTC 309
71.25
GitHub Action Run
5 os-ubuntu-latest-php-5.4-custom-ini-false - 13243783968.5 10 Feb 2025 03:27PM UTC 309
72.35
GitHub Action Run
6 os-windows-latest-php-8.4-custom-ini-false - 13243783968.6 10 Feb 2025 03:02PM UTC 309
2.47
GitHub Action Run
7 os-windows-latest-php-5.5-custom-ini-false - 13243783968.7 10 Feb 2025 03:02PM UTC 309
2.2
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-true - 13243783968.8 10 Feb 2025 03:06PM UTC 309
0.73
GitHub Action Run
Source Files on build 13243783968
  • Tree
  • List 309
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13243783968
  • 98c1ce8d on github
  • Prev Build on master (#13230290478)
  • Next Build on master (#13244288370)
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