Skip to content

Small cleanups in Routes#30

Draft
Potherca wants to merge 5 commits into
mainfrom
cleanup/routes
Draft

Small cleanups in Routes#30
Potherca wants to merge 5 commits into
mainfrom
cleanup/routes

Conversation

@Potherca
Copy link
Copy Markdown
Member

@Potherca Potherca commented May 27, 2026

Moved to draft until changes to logic have been removed from commits.

This MR makes minor changes to clean up the Routes classes.

  • Cleanup 'if' statements (remove unneeded, combine consecutive)
  • Dead code (remove unused variable)
  • Fix dynamic calls to static method
  • Hardening (make array comparison strict, make json_decode throw, user input type check, add check for constant existence)
  • Use statements (remove unused, sort alphabetically)
  • Whitespace fixes (convert all indents to tabs, remove trailing whitespace)

This is part of a first round of minor cleanup before larger changes are made.

Potherca added 5 commits May 27, 2026 11:02
- Cleanup "if" statements (remove unneeded, combine consecutive)
- Fix dynamic calls to static method
- Hardening (make array comparison strict, make json_decode throw, user input type check, add check for constant existence)
- Use statements (remove unused, sort alphabetically)
- Whitespace fixes (convert all indents to tabs, remove trailing whitespace)
- Use statements (remove unused, sort alphabetically)
- Dead code (remove unused variable)
- Fix dynamic call to static method
- Use statements (remove unused, sort alphabetically)
- Whitespace fixes (convert all indents to tabs, remove trailing whitespace)
- Fix dynamic call to static method
- Use statements (sort alphabetically)
- Fix dynamic calls to static method
- Dead code (remove unused variable)
- Use statements (remove unused, sort alphabetically)
@Potherca Potherca requested a review from ylebre May 27, 2026 09:09
@Potherca Potherca self-assigned this May 27, 2026
@Potherca Potherca marked this pull request as draft May 27, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant