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

PHPCSStandards / PHP_CodeSniffer / 13243920103
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/fixer-conflict/PSR12.Functions.ReturnTypeDeclaration
DEFAULT BRANCH: master
Ran 10 Feb 2025 03:07PM UTC
Jobs 8
Files 262
Run time 29min
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 03:05PM UTC coverage: 77.174% (+0.04%) from 77.136%
13243920103

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.

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

19069 of 24709 relevant lines covered (77.17%)

76.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 13243920103.1 10 Feb 2025 03:11PM UTC 262
0.81
GitHub Action Run
2 os-ubuntu-latest-php-7.2-custom-ini-false - 13243920103.2 10 Feb 2025 03:11PM UTC 262
73.5
GitHub Action Run
3 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13243920103.3 10 Feb 2025 03:10PM UTC 262
1.9
GitHub Action Run
4 os-windows-latest-php-8.4-custom-ini-false - 13243920103.4 10 Feb 2025 03:07PM UTC 262
2.6
GitHub Action Run
5 os-windows-latest-php-7.2-custom-ini-false - 13243920103.5 10 Feb 2025 03:07PM UTC 262
2.07
GitHub Action Run
6 os-ubuntu-latest-php-8.4-custom-ini-false - 13243920103.6 10 Feb 2025 03:10PM UTC 262
75.67
GitHub Action Run
7 os-ubuntu-latest-php-8.1-custom-ini-true - 13243920103.7 10 Feb 2025 03:10PM UTC 262
75.68
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 13243920103.8 10 Feb 2025 03:10PM UTC 262
1.9
GitHub Action Run
Source Files on build 13243920103
  • 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 #13243920103
  • cca598d0 on github
  • Prev Build on 4.0 (#13230301690)
  • Next Build on 4.0 (#13244311937)
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