return __trans(':product_title', [':product_title' => $product->title]);
is the same as
return $product->title);
And prevent users from making mistakes
* Refactor System Updater
Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.
Also refactor foss-update.php into core class, `UpdatePatcher`.
* Refactor file system actions to use Symfony Filesystem
Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
* Implemented Monolog
* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.
* Doesn't need to be an array
* -Box_LogStream
* Reverted squash
* Fixed a duplicate
* Type hinting
* This got lost in a merge commit
* Kind of distracted today. Good thing squash and merge exists.
* Cleaning
* Rebased composer.json & lockfile
* Enabled the check again
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
In recent versions of PHP, converting from a float to an int causes deprecation warnings. This PR cleans up a situation I came across where that was happing.
* Introduce a cspell workflow
* Update cspell.yml
* Update cspell.yml
* Why is it seemingly ignoring the config?
* Waiit a min
* Fixed a bunch of spelling mistakes
* And set it back to incremental mode
* That is actually supposed to be spelled wrong..
Because BoxBilling :)
* Capitalization
* I swear I fixed this as well
* Update cspell.json
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* +Central Alerts System
* Added a link to the pull request
* Bugfix
* Refactored to use symfony/cache
* Reverted the database patch
* Update foss-update.php
* Reverted the table structure
* Restore src/install/sql/structure.sql
* Fixed the HTTP client
* Restore src/foss-update.php
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Update System update message to link to updater
Update the System module to provide a link to the updater in the update available message. Also update admin template to permit passing arbitrary HTML (such as links) in system messages.
* Improve system message handling with optional URL
Update System module message handling, and admin template, to better handle an optional URL for each message.
* Fix SQL error on cancelling invoice
Update Invoice service to check for empty string when setting `gateway_id` to fix SQL error.
* Update Invoice `gateway_id` check
Update Invoice `gateway_id` check to simplify by just checking for `empty()`.
* Caught a typo
* New ExtensionDirectory class
* Tests
* Tests and error handling
* Stuff
* Literally the same outcome anyway. Will write this in the future.
* Removed tests for a function that does nothing
* "stable" -> "release"
* Fix misnamed exception errors
* Update class name to ExtensionManager
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>