Completed
Pull Request — master (#293)
by Christian
02:05
created

ParserRuntimeOnly::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 5
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace TYPO3Fluid\Fluid\Core\ViewHelper\Traits;
3
4
use TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler;
5
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode;
6
7
/**
8
 * Class ParserRuntimeOnly
9
 */
10
trait ParserRuntimeOnly
11
{
12
    /**
13
     * @return null
14
     */
15
    public function render()
16
    {
17
        return null;
18
    }
19
20
    /**
21
     * @param string $argumentsName
22
     * @param string $closureName
23
     * @param string $initializationPhpCode
24
     * @param ViewHelperNode $node
25
     * @param TemplateCompiler $compiler
26
     * @return null
27
     */
28
    public function compile($argumentsName, $closureName, &$initializationPhpCode, ViewHelperNode $node, TemplateCompiler $compiler)
0 ignored issues
show
Unused Code introduced by
The parameter $argumentsName is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $closureName is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $initializationPhpCode is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $node is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $compiler is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
29
    {
30
        return null;
31
    }
32
}