Passed
Push — up-php7 ( a2fe11...4e1c1e )
by Erik
05:48
created

HtmlTransformer::doMap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * @author Muhammed Akbulut <[email protected]>
4
 * @copyright Zicht Online <http://www.zicht.nl>
5
 */
6
7
namespace Zicht\Bundle\UrlBundle\Form\DataTransformer;
8
9
use Symfony\Component\Form\DataTransformerInterface;
10
11
/**
12
 * Class AliasToInternalUrlTransformer
13
 *
14
 * @package Zicht\Bundle\AdminBundle\Form\DataTransformer
15
 */
16
class HtmlTransformer extends AbstractAliasingTransformer
17
{
18
    /**
19
     * @{inheritDoc}
20
     */
21
    protected function doMap($html, $mode)
22
    {
23
        return $this->aliasing->mapContent('text/html', $mode, $html, []);
24
    }
25
}
26