Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
49 | private function build() |
||
50 | { |
||
51 | $raw = $this->raw; |
||
52 | |||
53 | $ended = substr($raw, -1) === '$'; |
||
54 | $raw = rtrim($raw, '*'); |
||
55 | $raw = rtrim($raw, '$'); |
||
56 | |||
57 | $parts = explode('*', $raw); |
||
58 | array_walk($parts, function (&$part) { |
||
59 | $part = preg_quote($part, '/'); |
||
60 | }); |
||
61 | return implode('.*', $parts).($ended?'':'.*'); |
||
62 | } |
||
63 | |||
103 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.