| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 19 | { |
||
| 20 | 2 | public function containsCount( |
|
| 21 | string $serializedData, |
||
| 22 | string $searchTerm |
||
| 23 | ): int { |
||
| 24 | 2 | $tokenList = (new Tokenizer())->tokenize($serializedData); |
|
| 25 | 2 | $type = (new Parser())->parse($tokenList); |
|
| 26 | |||
| 27 | 2 | return $type->containsStringCount($searchTerm); |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function replace( |
|
| 31 | string $serializedData, |
||
| 32 | string $searchTerm, |
||
| 33 | string $replaceTerm |
||
| 34 | ): string { |
||
| 41 | } |