$result =
$this->appRepository->
search( $criteria,
Context::
createDefaultContext() )->
getEntities();
$cookies =
array_values($this->inner->
getCookieGroups());
if ($result->
count() < 1
) { return $cookies;
} return $this->
mergeCookies($cookies,
$result);
} /**
* merges cookie groups by the snippet name of the group
* and only iterates once over every cookie
*
* @param array<string|int, mixed> $cookies
*
* @return array<string|int, mixed>
*/
private function mergeCookies(array
$cookies, AppCollection
$apps): array
{