mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-16 22:08:44 +02:00
Rename \Combodo\iTop\Application\UI\Base\Component\Html\HtmlFactory::MakeP to MakeParagraph
This commit is contained in:
@@ -332,13 +332,13 @@ JS
|
||||
);
|
||||
$oSyntaxErrorPanel->AddSubBlock($oUseSuggestedQueryButton);
|
||||
} else {
|
||||
$oSyntaxErrorPanel->AddSubBlock(HtmlFactory::MakeP($e->getHtmlDesc()));
|
||||
$oSyntaxErrorPanel->AddSubBlock(HtmlFactory::MakeParagraph($e->getHtmlDesc()));
|
||||
}
|
||||
} else {
|
||||
$oSyntaxErrorPanel->AddSubBlock(HtmlFactory::MakeP($e->getHtmlDesc()));
|
||||
$oSyntaxErrorPanel->AddSubBlock(HtmlFactory::MakeParagraph($e->getHtmlDesc()));
|
||||
}
|
||||
} else {
|
||||
$oSyntaxErrorPanel->AddSubBlock(HtmlFactory::MakeP($e->getMessage()));
|
||||
$oSyntaxErrorPanel->AddSubBlock(HtmlFactory::MakeParagraph($e->getMessage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Combodo\iTop\Application\UI\Base\Component\Html;
|
||||
*/
|
||||
class HtmlFactory
|
||||
{
|
||||
public static function MakeP(string $sContent): Html
|
||||
public static function MakeParagraph(string $sContent): Html
|
||||
{
|
||||
return new Html('<p>'.$sContent.'</p>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user