Failed Conditions
Push — psr2 ( de3699...36dc94 )
by Andreas
03:29
created

Windowssharelink   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A preConnect() 0 4 1
A connectTo() 0 8 1
A getSort() 0 4 1
1
<?php
2
3
namespace dokuwiki\ParserMode;
4
5
class Windowssharelink extends AbstractMode
6
{
7
8
    protected $pattern;
9
10
    /** @inheritdoc */
11
    public function preConnect()
12
    {
13
        $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
14
    }
15
16
    /** @inheritdoc */
17
    public function connectTo($mode)
18
    {
19
        $this->Lexer->addSpecialPattern(
20
            $this->pattern,
21
            $mode,
22
            'windowssharelink'
23
        );
24
    }
25
26
    /** @inheritdoc */
27
    public function getSort()
28
    {
29
        return 350;
30
    }
31
}
32