Failed Conditions
Push — psr2 ( e9eace...d4d8fb )
by Andreas
07:52
created

Nocache   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A connectTo() 0 4 1
A getSort() 0 4 1
1
<?php
2
3
namespace dokuwiki\Parsing\ParserMode;
4
5
class Nocache extends AbstractMode
6
{
7
8
    /** @inheritdoc */
9
    public function connectTo($mode)
10
    {
11
        $this->Lexer->addSpecialPattern('~~NOCACHE~~', $mode, 'nocache');
12
    }
13
14
    /** @inheritdoc */
15
    public function getSort()
16
    {
17
        return 40;
18
    }
19
}
20