mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add PHPUnit test for LibreNMS Discord transport * Style * Adding comments for methods and others. * Refactor title, color, embedFields and footer to its own methods. Renaming and comments. * testDiscordDelivery includes img and html tags. * testDiscordDelivery tests INI options * renamed getter methods for clarity. Refactor to includeINIFields() method. * refactor attribute $discord_message; * Discord.php: Bugfix "Error: Invalid Field" when discord-embed-fields is left empty. Discord.php: Removed DEFAULT_EMBEDS (defaults are not working with text fields). DiscordTest.php: transport config tests improved. * Transport.md: Documented options, images and ebed fields. Better examples. * typos * styleCI and PHPStan * StyleCI * StyleCI