| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 13 | public function processStringDecode(string $content): string |
|
| 22 | { |
||
| 23 | 13 | foreach ($this->stringDecoders as $decoder) { |
|
| 24 | 7 | $header = $this->getStringHeader($decoder->getHeaderKey()); |
|
| 25 | 7 | if (!empty($header) && $decoder->canDecode(strval($header))) { |
|
| 26 | 3 | $content = $decoder->processDecode($content); |
|
| 27 | } |
||
| 28 | } |
||
| 29 | 13 | return $content; |
|
| 30 | } |
||
| 43 |