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

PHPCSStandards / PHP_CodeSniffer / 14313595379
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feat/use-different-error-code-for-namespace-names
DEFAULT BRANCH: master
Ran 07 Apr 2025 03:47PM UTC
Jobs 8
Files 263
Run time 260min
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

07 Apr 2025 03:45PM UTC coverage: 77.545% (-0.002%) from 77.547%
14313595379

push

github

jrfnl
Squiz/OperatorBracket: stability tweak

The `$allowed` tokens array is joined after declaration with the `Tokens::$operators` array. This is only reliable if the keys in both arrays are unique (or intended to be overwritten).
However, with the `$allowed` array being numerically indexed and PHP native tokens also being integers, this was not the case and could lead to one of the tokens in the original array (unintentionally) being disregarded/overwritten by one of the tokens in the `Tokens::$operators` array.

Fixed now, by making setting the tokens constants both as the key as well as the value, making the entries in the array suitable for an array join operation.

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

4 existing lines in 1 file now uncovered.

19311 of 24903 relevant lines covered (77.54%)

77.57 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
97.42
-0.03% src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php
Jobs
ID Job ID Ran Files Coverage
1 os-ubuntu-latest-php-8.4-custom-ini-false - 14313595379.1 07 Apr 2025 03:51PM UTC 263
76.06
GitHub Action Run
2 os-windows-latest-php-8.4-custom-ini-false - 14313595379.2 07 Apr 2025 03:47PM UTC 263
2.65
GitHub Action Run
3 os-ubuntu-latest-php-7.2-custom-ini-false - 14313595379.3 07 Apr 2025 03:53PM UTC 263
73.88
GitHub Action Run
4 os-windows-latest-php-7.2-custom-ini-false - 14313595379.4 07 Apr 2025 03:47PM UTC 263
2.1
GitHub Action Run
5 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 14313595379.5 07 Apr 2025 03:53PM UTC 263
0.81
GitHub Action Run
6 os-ubuntu-latest-php-8.1-custom-ini-true - 14313595379.6 07 Apr 2025 03:51PM UTC 263
76.08
GitHub Action Run
7 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 14313595379.7 07 Apr 2025 03:51PM UTC 263
1.89
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 14313595379.8 07 Apr 2025 03:51PM UTC 263
1.89
GitHub Action Run
Source Files on build 14313595379
  • 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 #14313595379
  • 5529947a on github
  • Prev Build on 4.0 (#14313473874)
  • Next Build on 4.0 (#14324405406)
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