src/Event/ReadModel/JSONLD/EventJsonDocumentLanguageAnalyzer.php 1 location
|
@@ 69-75 (lines=7) @@
|
| 66 |
|
]; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (isset($body->priceInfo) && is_array($body->priceInfo) && is_string($body->priceInfo[0]->name)) { |
| 70 |
|
foreach ($body->priceInfo as $priceInfo) { |
| 71 |
|
$priceInfo->name = (object) [ |
| 72 |
|
$mainLanguage => $priceInfo->name, |
| 73 |
|
]; |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return $jsonDocument->withBody($body); |
| 78 |
|
} |
src/Place/ReadModel/JSONLD/PlaceJsonDocumentLanguageAnalyzer.php 1 location
|
@@ 76-82 (lines=7) @@
|
| 73 |
|
]; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
if (isset($body->priceInfo) && is_array($body->priceInfo) && is_string($body->priceInfo[0]->name)) { |
| 77 |
|
foreach ($body->priceInfo as $priceInfo) { |
| 78 |
|
$priceInfo->name = (object) [ |
| 79 |
|
$mainLanguage => $priceInfo->name, |
| 80 |
|
]; |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
return $jsonDocument->withBody($body); |
| 85 |
|
} |