if (empty($emotions)) { return true;
} $showListing =
array_column($emotions, 'showListing'
);
if (!
empty($showListing) &&
(bool) max($showListing)) { return true;
} // Enable the listing if there's a viewport with no emotion assigned
if (!
$this->
haveAllViewportsEmotions($emotions)) { return true;
} if (empty($devicesWithEmotion)) { return false;
} $entryPageEmotions =
array_filter($emotions,
function D
$emotion) { return \
in_array($emotion['listing_visibility'
],
[ Emotion::LISTING_VISIBILITY_ONLY_START,
Emotion::LISTING_VISIBILITY_ONLY_START_AND_LISTING,
],