| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 30 | 1 | public function replace( |
|
| 31 | string $serializedData, |
||
| 32 | string $searchTerm, |
||
| 33 | string $replaceTerm |
||
| 34 | ): string { |
||
| 35 | 1 | $tokenList = (new Tokenizer())->tokenize($serializedData); |
|
| 36 | 1 | $type = (new Parser())->parse($tokenList); |
|
| 37 | 1 | $type->replaceString($searchTerm, $replaceTerm); |
|
| 38 | |||
| 39 | 1 | return strval($type); |
|
| 40 | } |
||
| 41 | } |