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

ParserRuntimeOnly   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 1
A compile() 0 4 1
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
}