* Merge public ticket logic into regular client tickets
* Unified email templates
* Unified events and listeners
* Remove passthrough service methods
* Corrected phpDocs
* Create a combined `author` array to replace `client`, `client_id`, `author_name`, `author_email`
* Switch to using "Author" instead of "Requester"
* Switch to using a single endpoint and single template for client and guest tickets
Also left a redirect behind to make sure previously sent emails still have a working link
* Add author_role parameter to onBeforeClientOpenTicket
* Adjusted rate limit ordering
* Update Twig templates and the update patcher
* "Public ticket" -> "Guest ticket"
* Addressed code review comments
* Address code review comments
* Also purge old pticket email templates
* Fix email sending
* Support: enforce auth, fix guest email links
* Migrate mod_support config key name
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Quote avatar data URI; add .db-avatar styles
* Pagination partial - require url & append hash
* Use defaults in email templates; add delay msg
* Guard Twig template vars with default()
* Replace arrow fn with static closure in test
* Add defaults to email templates and Twig policy
* Guard Twig templates with default filters
* Assert no strict-variable findings with toBeEmpty
* Guard email templates against missing order data
* Make activated_at null-safe in email templates
* 🐛 Use admin recipient in staff reset emails
* Add PSR-3 styled logger method names to Box_Log
* Switch to using PSR-3 style method names in logger callers
* Handle writer failures centrally and harden masking behavior
* Fix wrong context format used
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Refactor tests to replace depreciated functions
* Update Rector config and dependencies
* Rector: Add explicit string casting for stricter type safety
* Rector: Add return type hints to methods across codebase
* Rector: Increase dead code level and refactor invoice item logic
* Remove unnecessary `willReturn` from test mocks
Eliminate redundant `willReturn(null)` and similar calls from PHPUnit mock setups in legacy module tests, leaving only method expectations. Also update some test values to use floats for consistency.
* Refactor API controller and email adapter return values
* Update formatting and guidelines in `AGENTS.md`
* Started implimenting a security dashboard and checks
* Wrote two functional checks
* Fix typos
* Update webserver.php
* + a new check
* Slight cleanup, made translatable
* Added some general checks
* Update cspell.json
* Typo
* Slight tweaks, add a permission to run checks
* Bumped the Rector deadcode level
* Added the instanceof setlist
* Increasded type coverage and updated tests config too
* Bumped type coverage & ran PHP-cs-fixer
* Merge Kb and Support modules
Merge the Kb and Support modules as they contain related functionality.
* General improvements to Support module UI
Update Support module copy and navigation to be more consistent, and other general improvements.
* This was missed.. and now it's not 😉
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Apply PHP Code Styling & Quality Changes
* Delete these
* Update .gitignore
* Fixes for PHPStan
* Ignore spelling in the gitnore
* Allow null for that type
Honestly doing so makes ZERO sense, but it matches the current behavior.
---------
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>