Apply PHP Code Styling & Quality Changes (#3628)

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
This commit is contained in:
FOSSBilling BotandFOSSBilling Bot authored and GitHub committed 2026-05-28 15:53:14 +01:00
1 parent 8c67932831
commit be71ae3138
1 file changed
+13 -13
@@ -286,20 +286,20 @@ class FOSSBillingExtension
$this->stylesheetTag($this->publicAssetUrl('editor/ckeditor.css')),
$this->scriptTag($this->publicAssetUrl('editor/ckeditor.js')),
<<<HTML
<script>
FOSSBilling.ready(function () {
FOSSBilling.editor.init({$selectorJson}, {$optionsJson});
<script>
FOSSBilling.ready(function () {
FOSSBilling.editor.init({$selectorJson}, {$optionsJson});
if (document.documentElement.getAttribute('data-bs-theme') === 'dark' || localStorage.getItem('theme') === 'dark') {
setTimeout(function () {
document.querySelectorAll('.ck-editor__main').forEach(function (element) {
element.style.color = '#1d273b';
});
}, 1000);
}
});
</script>
HTML,
if (document.documentElement.getAttribute('data-bs-theme') === 'dark' || localStorage.getItem('theme') === 'dark') {
setTimeout(function () {
document.querySelectorAll('.ck-editor__main').forEach(function (element) {
element.style.color = '#1d273b';
});
}, 1000);
}
});
</script>
HTML,
]);
}