Remove unused SettingsController::convertStylesToString method

[MAILPOET-5798]
This commit is contained in:
Rostislav Wolny
2024-04-09 14:35:04 +02:00
committed by Rostislav Wolný
parent 15e0c3fa4d
commit 47a4871600
2 changed files with 0 additions and 22 deletions

View File

@ -103,17 +103,6 @@ class SettingsController {
return "{$width}px";
}
/**
* This functions converts an array of styles to a string that can be used in HTML.
*/
public function convertStylesToString(array $styles): string {
$cssString = '';
foreach ($styles as $property => $value) {
$cssString .= $property . ':' . $value . ';';
}
return trim($cssString); // Remove trailing space and return the formatted string
}
public function parseStylesToArray(string $styles): array {
$styles = explode(';', $styles);
$parsedStyles = [];