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

bleedingdeacons / integrity / 30557461874
91%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2026 03:37PM UTC
Jobs 1
Files 13
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

30 Jul 2026 03:35PM UTC coverage: 90.451%. Remained the same
30557461874

push

github

web-flow
Type ControllerTrait's arrays for PHPStan level 6 (#25)

ControllerTrait is used by all five resource controllers, so each
un-annotated array was reported five times over — 35 of integrity's 74
level-6 findings came from these seven signatures alone.

Where the shape is fixed it is now spelled out rather than widened to
array<string, mixed>, so the controllers get real type information back:

- transformLocation() returns a 15-key shape; latitude/longitude are
  float|null, matching Unity's Location interface.
- transformContact() returns a fixed four-key string shape. Its $contact
  parameter keeps the legacy array form, typed with optional keys because
  callers predating the Contact interface supplied whichever fields they
  had — that also makes the string return provable.
- successResponse() takes one entity, paginatedResponse() a list; the two
  genuinely differ and are typed accordingly (every call site passes
  array_values()/array_map() output to the latter).
- extractRequestContext()'s existing array shape had a bare inner array.

No behaviour change — PHPDoc only. Level stays at 5, where this is a
no-op; verified `composer phpstan` still passes.

2368 of 2618 relevant lines covered (90.45%)

3.26 hits per line

Coverage Regressions

Lines Coverage ∆ File
13
74.75
0.0% integrity/integrity/src/Api/Controllers/ControllerTrait.php
Jobs
ID Job ID Ran Files Coverage
1 30557461874.1 30 Jul 2026 03:37PM UTC 13
90.45
GitHub Action Run
Source Files on build 30557461874
  • Tree
  • List 13
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30557461874
  • 1e4b1058 on github
  • Prev Build on main (#30555314698)
  • Next Build on main (#30557794071)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc