Completed
Push — feature/anchors-twig-filter ( ee6739...2beb13 )
by Vladimir
02:22
created

PlainTextEngine::parse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
/**
4
 * @copyright 2018 Vladimir Jimenez
5
 * @license   https://github.com/stakx-io/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\MarkupEngine;
9
10
class PlainTextEngine implements MarkupEngineInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 76
    public function getTemplateTag()
16
    {
17 76
        return null;
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 76
    public function getExtensions()
24
    {
25
        return [
26 76
            'txt',
27
        ];
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function parse($content, $contentItem = null)
34
    {
35
        return $content;
36
    }
37
}
38