TwigEngineMokcup::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
namespace Test\TestBundle\Mockup;
3
4
use Symfony\Bundle\TwigBundle\TwigEngine;
5
6
class TwigEngineMokcup extends TwigEngine {
7
8
    public $renderParameters;
9
10 11
    public function __construct() {
11 11
    }
12
13 10
    public function render($name, array $parameters = array()) {
14 10
        $this->renderParameters = $parameters;
15 10
        return "";
16
    }
17
}