mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-12-04 20:16:11 +01:00
TASK: Fix CGL Issues
Fix issues in view class. Do not print progress while linting.
This commit is contained in:
parent
d1bc4870f7
commit
c11283119b
2 changed files with 5 additions and 4 deletions
|
@ -9,7 +9,7 @@ use TYPO3\CMS\Core\Utility\CommandUtility;
|
||||||
|
|
||||||
class MjmlBasedView extends StandaloneView
|
class MjmlBasedView extends StandaloneView
|
||||||
{
|
{
|
||||||
function render($actionName = null)
|
public function render($actionName = null)
|
||||||
{
|
{
|
||||||
return $this->getHtmlFromMjml(parent::render());
|
return $this->getHtmlFromMjml(parent::render());
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class MjmlBasedView extends StandaloneView
|
||||||
|
|
||||||
GeneralUtility::unlink_tempfile($temporaryMjmlFileWithPath);
|
GeneralUtility::unlink_tempfile($temporaryMjmlFileWithPath);
|
||||||
|
|
||||||
return implode('',$result);
|
return implode('', $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,7 +40,8 @@ class MjmlBasedView extends StandaloneView
|
||||||
* @param string $args
|
* @param string $args
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function getEscapedCommand(string $cmd, string $args) {
|
private function getEscapedCommand(string $cmd, string $args)
|
||||||
|
{
|
||||||
$escapedCmd = escapeshellcmd($cmd);
|
$escapedCmd = escapeshellcmd($cmd);
|
||||||
|
|
||||||
$argsArray = explode(' ', $args);
|
$argsArray = explode(' ', $args);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<file>./Classes/</file>
|
<file>./Classes/</file>
|
||||||
|
|
||||||
<!-- Set default settings -->
|
<!-- Set default settings -->
|
||||||
<arg value="sp"/>
|
<arg value="s"/>
|
||||||
<arg name="colors"/>
|
<arg name="colors"/>
|
||||||
<arg name="encoding" value="utf-8" />
|
<arg name="encoding" value="utf-8" />
|
||||||
<arg name="extensions" value="php" />
|
<arg name="extensions" value="php" />
|
||||||
|
|
Loading…
Reference in a new issue