for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TYPO3Fluid\Fluid\Core\ViewHelper\Traits;
use TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler;
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode;
/**
* Class CompileEmpty
*
* Implemented by ViewHelpers which must compile to provide empty
* content (e.g. ViewHelper is a structure ViewHelper which uses
* postParseEvent and/or are not supposed to render once compiled).
*/
trait CompileEmpty
{
* Return empty string to be placed in the compiled template.
* @param string $argumentsName
* @param string $closureName
* @param string $initializationPhpCode
* @param ViewHelperNode $node
* @param TemplateCompiler $compiler
* @return string
public function compile(
$argumentsName,
$argumentsName
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$closureName,
$closureName
&$initializationPhpCode,
$initializationPhpCode
ViewHelperNode $node,
$node
TemplateCompiler $compiler
$compiler
) {
return '\'\'';
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.