Commit Graph
23 Commits
Author SHA1 Message Date
fefbcd21b0 Apply PHP Code Styling & Quality Changes (#1498)
* 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>
2023-07-30 08:57:44 -07:00
Yağızhanandfossbilling-bot fd872ac941 Implement PHP-CS-Fixer as an automated workflow (#1240)
* Implement PHP-CS-Fixer as an automated workflow

* Apply PHP-CS-Fixer changes

---------

Co-authored-by: fossbilling-bot <121974958+fossbilling-bot@users.noreply.github.com>
2023-07-30 06:49:11 -07:00
Belle AerniandJohn @ S4 20e38a162f Exception messages cleanup (#1376)
* Misc exception messages improvements

* Cleanup / improve server manager exceptions

* Tests :)

* Some registrar exception cleanup

* Clean up payment gateway exceptions

* Some other misc improvements

* Update Resellerclub.php

* Fix typo in Namecheap error message

---------

Co-authored-by: John @ S4 <64874788+John-S4@users.noreply.github.com>
2023-07-03 14:54:23 -07:00
Belle Aerni 789e57c89c Prevent deprecation errors when adding products to cart (#1340)
* Prevent deprecation errors when adding products to cart

* Minor fix
2023-06-21 11:10:57 -07:00
Belle Aerni a02b1b32fe Re-check promo code validity during checkout (#1316)
* Re-check promo code validity during checkout

* Add tools mock to the failing test

* Properly resolve issue with the tests
2023-06-12 06:30:45 +02:00
Belle Aerni b65a75fcf7 Validate add-on configs before adding to cart (#1313)
* Validate addon configs before adding to cart

* Fix spelling mistake
2023-06-12 06:30:20 +02:00
Belle Aerni 56a64fefdd Prevent checkouts with disabled products (#1308) 2023-06-12 06:28:00 +02:00
Jaap Marcus 8946f2c4f1 fix/do-not-translate-product_title (#1291)
return __trans(':product_title', [':product_title' => $product->title]);

is the same as 

 return $product->title);

And prevent users from making mistakes
2023-06-08 02:30:39 -07:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Adam Daley 93d76996a3 Fix owndomain TLD handling to include period (#1163)
Fix handling of owndomain TLDs to always include the leading period (.), as is required.
2023-04-25 06:08:15 +02:00
Belle Aerni 0a5fb92b05 Various improvements to translatable strings (#1108)
* Various improvements to translatable strings

* Tests
2023-04-15 03:51:18 -07:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
ShamshidandYağızhan cdca4b7e50 Add/replace modules icon and update manifest (#872)
* add/replace modules icon and update manifest entry

* update modules manifest homepage_url

* include svg to set color via css

* +Attribution

---------

Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2023-03-01 19:46:57 -08:00
Belle Aerni 2cc0bfd132 Re-add support for prependOrderConfig
Looks like the Servicehosting module still relies on this, so let's add it back for now
2023-02-02 17:54:18 -08:00
Belle Aerni 4d7b341e03 Removed / cleaned up deprecated functions (#755)
* Add PHPStan extension for deprecation function usage

* Removed some deprecated functions

* And a few more

* Also remove the deprecated API calls

* Fix references to deprecated API calls

* Oh, and this too
2023-02-01 03:36:02 -08:00
Belle Aerni 774f0d5c95 Use Rector to modernize code for PHP 8.0 2023-01-12 00:40:54 -08:00
Belle Aerni e10c07a9ed Fix a few indentation issues 2022-12-27 15:57:01 -08:00
Belle Aerni 41d498ac86 Start improving API PHPDocs 2022-12-24 21:09:21 -08:00
Belle Aerni c243f91b3d Create custom "__trans" function & use that 2022-12-08 12:18:22 -08:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00