Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 72.72% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class JsonCompatibilityConverter |
||
23 | { |
||
24 | /** |
||
25 | * This is implemented as we want to switch away from serialized data to json data, when the crawler is storing |
||
26 | * in the database. To ensure that older crawler entries, which have already been stored as serialized data |
||
27 | * still works, we have added this converter that can be used for the reading part. The writing part will be done |
||
28 | * in json from now on. |
||
29 | * @see https://github.com/AOEpeople/crawler/issues/417 |
||
30 | * |
||
31 | * @return array|bool |
||
32 | */ |
||
33 | 15 | public function convert(string $dataString) |
|
48 |