Serreau Jovann aeb2744d7d fix: SonarQube - refactor ClientsController (21->20 methodes), AdvertController (constante + syncPayment)
ClientsController :
- Extraction dispatchPostAction() via match (show: 5->2 returns)
- Inline sendWelcomeEmail (3 call sites) et indexInMeilisearch (2 call sites)
- Fusion initStripeCustomer -> setupStripeCustomer
- Rename finalizeStripeCustomer -> finalizeStripeMetadata
- Catch vide geocodeIfNeeded rempli avec commentaire
- 21 -> 20 methodes (limite autorisee)

AdvertController :
- Constante MSG_NOT_FOUND pour literal duplique 7 fois
- syncPayment refactore (CC 19->8) : extraction processSyncPayment,
  resolveMethodLabel, ensureAdvertPayment, ensureFacture

JS SonarQube :
- app.js : removeAttribute -> delete dataset, ternaires -> payBtnLabel(),
  window -> globalThis, parseFloat -> Number.parseFloat, catch vides -> console.debug
- app.scss : contraste ameliore (white -> #f5f5f5)
- entreprise-search.js : && -> optional chaining (?., ??)
- app.test.js : extraction cleanupListeners/resetMocks/loadApp (CC 17->12)

PHP CS Fixer : 3 fichiers corriges
PHPStan level 6 : 0 erreurs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 08:52:32 +02:00
2026-03-30 18:52:03 +02:00
2026-03-30 18:52:03 +02:00
2026-03-30 18:51:57 +02:00
2026-03-30 18:51:57 +02:00
2026-03-30 18:52:03 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
Description
No description provided
9.6 MiB
Languages
PHP 66.2%
Twig 28.7%
JavaScript 4%
Jinja 0.5%
Makefile 0.3%
Other 0.2%