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

PHPCSStandards / PHP_CodeSniffer / 12048293772
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/parse-error/File.getMethodProperties
DEFAULT BRANCH: master
Ran 27 Nov 2024 10:24AM UTC
Jobs 8
Files 262
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

27 Nov 2024 10:22AM UTC coverage: 76.294% (-0.002%) from 76.296%
12048293772

push

github

jrfnl
Generic/OpeningFunctionBraceKernighanRitchie: simplify logic to find end of the function signature

When finding the end of the function signature, the sniff had an
unnecessary block of code to change the `$end` parameter passed to
`findPrevious()` when handling a closure with a `use` statement.

Since we are looking for the first non-empty token before the opening
curly brace, it is not necessary to change the value of the `$end`
parameter. Actually, we don't even need to limit the search and we can
pass `null` (the default value). The returned first non-empty token will
be the same anyway regardless if `$end` is the closing parenthesis
before `use`, after `use` or `null`.

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

18753 of 24580 relevant lines covered (76.29%)

75.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 12048293772.1 27 Nov 2024 10:30AM UTC 262
0.18
GitHub Action Run
2 os-ubuntu-latest-php-8.1-custom-ini-true - 12048293772.2 27 Nov 2024 10:28AM UTC 262
74.76
GitHub Action Run
3 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 12048293772.3 27 Nov 2024 10:28AM UTC 262
1.08
GitHub Action Run
4 os-windows-latest-php-7.2-custom-ini-false - 12048293772.4 27 Nov 2024 10:24AM UTC 262
2.01
GitHub Action Run
5 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 12048293772.5 27 Nov 2024 10:28AM UTC 262
1.08
GitHub Action Run
6 os-ubuntu-latest-php-8.4-custom-ini-false - 12048293772.6 27 Nov 2024 10:28AM UTC 262
74.75
GitHub Action Run
7 os-ubuntu-latest-php-7.2-custom-ini-false - 12048293772.7 27 Nov 2024 10:30AM UTC 262
72.58
GitHub Action Run
8 os-windows-latest-php-8.4-custom-ini-false - 12048293772.8 27 Nov 2024 10:24AM UTC 262
2.48
GitHub Action Run
Source Files on build 12048293772
  • 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 #12048293772
  • cd0fee4d on github
  • Prev Build on 4.0 (#12046220173)
  • Next Build on 4.0 (#12057684915)
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