Failed Conditions
Push — psr2 ( ffc2cc...de2261 )
by Andreas
05:28
created

Doku_Lexer::addPattern()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 2
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Escapes regex characters other than (, ) and /
5
 *
6
 * @param string $str
7
 * @return string
8
 * @deprecated 2018-05-04
9
 */
10
function Doku_Lexer_Escape($str) {
11
    dbg_deprecated('dokuwiki\\Lexer\\Lexer::escape');
12
    return dokuwiki\Lexer\Lexer::escape($str);
13
}
14