Commit Graph
9 Commits
Author SHA1 Message Date
Belle Aerni 76321faf8e Misc fixes and cleanup (#2299)
* Misc fixes and cleanup

* More misc cleanup

* Removed outdated / invalid tests

* Update SentryHelper.php
2024-06-10 20:32:44 -07:00
Robert Thomas 1bea222a26 Refactor Server Library + Improve Docs (#2063)
* Refactor `Server` library component + improve docs

* Refactor `Server` library component + improve docs

* More meaningful documentation

* Allow null strings

* Generate new PHPStan baseline

* Address comments + Rector and PHP-CS-Fixer

* Handle converting package bandwidth and disk quota into bytes

* Remove previous PHPStan baseline change

* Fix `password_length` bug caused by previous PR
It seems that the database code automatically converts camel case (`passwordLength`) into snake case (`password_length`)

* Rectify migration

* Resolve merge issue
2024-01-16 04:40:22 -08:00
Belle Aerni 1881ff7bfb Bump PHPStan analysis level (#1641)
* Bump PHPStan to level 2
2023-09-28 09:06:58 +02:00
Belle Aerni 2058af6885 Remove Virtualmin and ISPConfig Server Managers (#1527)
* Remove Virtualmin and ISPConfig Server Managers

These don't work correctly and we don't currently have anyone to maintain them. I've taken the current versions and moved them to their own repositories so work can be continued on them at any point, but there's no reason for us to include them for the time being.

* Remove the ignored error for ISPConfig 3
2023-08-10 07:53:13 +02:00
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
Belle Aerni 4338aac628 Fix some server manager exceptions (#998)
* Fix some server manager exceptions

* Update phpstan-baseline.neon

* Also fixed a few errors in the Plesk adapter
2023-03-27 07:53:40 +02:00
Adam de0bed20ec Replace various HTTP client implementations with symfony/http-client (#861)
* Replace guzzlehttp/guzzle with symfony/http-client

Replace guzzlehttp/guzzle with symfony/http-client to standardise around one globally available HTTP client.

* Replace Box\Curl library and native cURL with symfony/http-client

Replace the Box\Curl library and native cURL with symfony/http-client to standardise around one well supported HTTP client, reduce unnecessary code, and improve compatibility.

* Remove obsolete functionality from Spamchecker module

Remove obsolete functions from Spamchecker module which depended upon cURL.
2023-03-15 11:11:28 +01:00
Belle Aerni 65971839ab Update phpstan-baseline.neon 2023-01-17 14:27:56 -08:00
Belle Aerni 1bb7dc2fd0 Introduce PHPStan 2022-12-19 12:54:12 -08:00