/**
* @param array<mixed> $customFieldAllowList
*/
private function cleanupLineItem(LineItem
$lineItem, array
$customFieldAllowList): void
{ if ($lineItem->
getCover()) { $lineItem->
getCover()->
setThumbnailsRo(''
);
} $this->
cleanupCustomFields($lineItem,
$customFieldAllowList);
foreach ($lineItem->
getChildren() as $child) { $this->
cleanupLineItem($child,
$customFieldAllowList);
} } /**
* @param array<mixed> $customFieldAllowList
*/
private function cleanupCustomFields(LineItem
$lineItem, array
$customFieldAllowList): void
{