Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | 870 | public function getContent() |
|
29 | { |
||
30 | 870 | if (null === $this->data) { |
|
31 | 678 | return $this->data; |
|
32 | } |
||
33 | |||
34 | 240 | $regexp = '/(?:[^'.self::$unreservedChars.self::$subdelimChars.']+ |
|
35 | 240 | |%(?!'.self::$encodedChars.'))/x'; |
|
36 | |||
37 | 240 | return $this->encode((string) $this->data, $regexp); |
|
38 | } |
||
39 | |||
58 |