This repository was archived by the owner on May 29, 2026. It is now read-only.
Commit 7ee06aa
committed
chore(quality): fix PHPCS inline IFs, named-param, alignment
Fixes lint violations surfaced while running composer phpcs + phpmd on
this branch:
- lib/Service/ItemService.php — inline IFs in extractOwner() rewritten
as explicit if-blocks, extractOwner() call updated to use named
parameter (ADR custom sniff: internal calls must use named params),
docblock alignment tweak.
- lib/Controller/HealthController.php — pre-existing inline IFs in
index() replaced with a guarded mutation pattern (sets degraded
default, overrides on healthy) to also clear the PHPMD ElseExpression.
- lib/Controller/MetricsController.php — pre-existing equals-sign
alignment between $prefix and $healthy.
`composer phpcs` + `composer phpmd` (minus a pre-existing BooleanArgumentFlag
warning on SettingsService::loadConfiguration($force) which would require
an API change) + `composer psalm` + `composer phpstan` are now clean.
`composer test:unit` still reports 26 / 26 passing.1 parent 34c57a6 commit 7ee06aa
3 files changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
| |||
0 commit comments