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 | 447 | public function getContent() |
|
29 | { |
||
30 | 447 | if (null === $this->data) { |
|
31 | 255 | return $this->data; |
|
32 | } |
||
33 | |||
34 | 198 | $regexp = '/(?:[^'.self::$unreservedChars.self::$subdelimChars.'\:]+ |
|
35 | 198 | |%(?!'.self::$encodedChars.'))/x'; |
|
36 | |||
37 | 198 | return $this->encode((string) $this->data, $regexp); |
|
38 | } |
||
39 | |||
58 |