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

PHPCSStandards / PHP_CodeSniffer / 13902315391
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 17 Mar 2025 02:44PM UTC
Jobs 8
Files 263
Run time 2min
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

17 Mar 2025 02:42PM UTC coverage: 77.539% (+0.02%) from 77.517%
13902315391

push

github

jrfnl
Remove some redundant code

With the `MessageCollector` being used in the `Ruleset` class since PR 857, some guard code as introduced in 99 is no longer needed.

The guard code was in place to prevent the following situation:
* File under test contained an invalid `// phpcs:set` annotation which tried to set a non-existent property on a sniff.
* The  `File::process()` method would see this annotation and call the `Ruleset::setSniffProperty()` method to set the property.
* The `Ruleset::setSniffProperty()` method would throw an exception for the non-existent property.
* The exception would cause the `File` class to stop scanning the file, potentially leading to missing errors/warnings.

As the error for setting a non-existent property now no longer leads to an exception on a direct call to the `Ruleset::setSniffProperty()` method, we also no longer need to catch the exception and handle it from within the `File::process()` method.

In practice, this means that setting a non-existent property on a sniff via an inline `// phpcs:set` annotation will now be silently ignored (again) and will not affect the scan of the rest of the file.

This commit reverts 99.

0 of 1 new or added line in 1 file covered. (0.0%)

19294 of 24883 relevant lines covered (77.54%)

76.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
70.57
0.4% src/Files/File.php
Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 13902315391.1 17 Mar 2025 02:49PM UTC 263
0.81
GitHub Action Run
2 os-ubuntu-latest-php-7.2-custom-ini-false - 13902315391.2 17 Mar 2025 02:49PM UTC 263
73.87
GitHub Action Run
3 os-ubuntu-latest-php-8.1-custom-ini-true - 13902315391.3 17 Mar 2025 02:47PM UTC 263
76.05
GitHub Action Run
4 os-windows-latest-php-7.2-custom-ini-false - 13902315391.4 17 Mar 2025 02:44PM UTC 263
2.08
GitHub Action Run
5 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13902315391.5 17 Mar 2025 02:47PM UTC 263
1.89
GitHub Action Run
6 os-windows-latest-php-8.4-custom-ini-false - 13902315391.6 17 Mar 2025 02:44PM UTC 263
2.62
GitHub Action Run
7 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 13902315391.7 17 Mar 2025 02:47PM UTC 263
1.89
GitHub Action Run
8 os-ubuntu-latest-php-8.4-custom-ini-false - 13902315391.8 17 Mar 2025 02:47PM UTC 263
76.03
GitHub Action Run
Source Files on build 13902315391
  • Tree
  • List 263
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13902315391
  • 90b47edd on github
  • Prev Build on 4.0 (#13902193419)
  • Next Build on 4.0 (#13902484955)
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