Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | private static function isMatchedString($str1, $str2) { |
||
32 | $quotedStr1 = preg_quote($str1); |
||
33 | $quotedStr2 = preg_quote($str2); |
||
34 | |||
35 | $inspectStr1 = str_replace('\\*', '.*', $quotedStr1); |
||
36 | $inspectStr2 = str_replace('\\*', '.*', $quotedStr2); |
||
37 | |||
38 | return preg_match(sprintf('/^%s$/', $inspectStr1), $str2) |
||
39 | || preg_match(sprintf('/^%s$/', $inspectStr2), $str1); |
||
40 | } |
||
41 | } |