Completed
Push — master ( e025a9...54d0c4 )
by Kacper
04:20
created

PlainText::getIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * Highlighter
4
 *
5
 * Copyright (C) 2016, Some right reserved.
6
 *
7
 * @author Kacper "Kadet" Donat <[email protected]>
8
 *
9
 * Contact with author:
10
 * Xmpp: [email protected]
11
 * E-mail: [email protected]
12
 *
13
 * From Kadet with love.
14
 */
15
16
namespace Kadet\Highlighter\Language;
17
18
class PlainText extends GreedyLanguage
19
{
20
21
    /**
22
     * Tokenization rules
23
     */
24
    public function setupRules() { }
25
26
    /** {@inheritdoc} */
27 1
    public function getIdentifier()
28
    {
29 1
        return 'plaintext';
30
    }
31
32
    public static function getMetadata()
33
    {
34
        return [
35
            'name'      => ['plaintext', 'text', 'none'],
36
            'mime'      => ['text/plain']
37
        ];
38
    }
39
}
40