TASK: Fix CGL Issues

Fix issues in view class.
Do not print progress while linting.
This commit is contained in:
Daniel Siepmann 2017-12-14 22:32:08 +01:00
parent d1bc4870f7
commit c11283119b
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 5 additions and 4 deletions

View file

@ -9,7 +9,7 @@ use TYPO3\CMS\Core\Utility\CommandUtility;
class MjmlBasedView extends StandaloneView
{
function render($actionName = null)
public function render($actionName = null)
{
return $this->getHtmlFromMjml(parent::render());
}
@ -32,7 +32,7 @@ class MjmlBasedView extends StandaloneView
GeneralUtility::unlink_tempfile($temporaryMjmlFileWithPath);
return implode('',$result);
return implode('', $result);
}
/**
@ -40,7 +40,8 @@ class MjmlBasedView extends StandaloneView
* @param string $args
* @return string
*/
private function getEscapedCommand(string $cmd, string $args) {
private function getEscapedCommand(string $cmd, string $args)
{
$escapedCmd = escapeshellcmd($cmd);
$argsArray = explode(' ', $args);

View file

@ -5,7 +5,7 @@
<file>./Classes/</file>
<!-- Set default settings -->
<arg value="sp"/>
<arg value="s"/>
<arg name="colors"/>
<arg name="encoding" value="utf-8" />
<arg name="extensions" value="php" />