Coding standards

This commit is contained in:
Michael 2021-06-03 05:18:22 +00:00
parent 4206c5d363
commit 5ddd2f3ab5

View file

@ -40,10 +40,11 @@ class Rules extends BaseApi
public static function rawContent(array $parameters = []) public static function rawContent(array $parameters = [])
{ {
$rules = []; $rules = [];
$id = 0; $id = 0;
if (DI::config()->get('system', 'tosdisplay')) { if (DI::config()->get('system', 'tosdisplay')) {
$html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL); $html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL);
$msg = HTML::toPlaintext($html, 0, true); $msg = HTML::toPlaintext($html, 0, true);
foreach (explode("\n", $msg) as $line) { foreach (explode("\n", $msg) as $line) {
$line = trim($line); $line = trim($line);