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

Doku_LexerParallelRegex::_getCompoundedRegex()   C

Complexity

Conditions 9
Paths 2

Size

Total Lines 53
Code Lines 35

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 9
eloc 35
nc 2
nop 0
dl 0
loc 53
rs 6.8963
c 0
b 0
f 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

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