Apply rules on lib dir

This commit is contained in:
Mike Jolley
2024-03-18 13:39:29 +00:00
committed by Jan Jakeš
parent 35fbac6320
commit 435f638011
159 changed files with 800 additions and 732 deletions

View File

@@ -192,7 +192,7 @@ class SubscriberSubscribeController {
* @return bool True if the subscriber is subscribed to any of the segments in the form
*/
public function isSubscribedToAnyFormSegments(FormEntity $form, SubscriberEntity $subscriber): bool {
$formSegments = array_merge( $form->getSegmentBlocksSegmentIds(), $form->getSettingsSegmentIds());
$formSegments = array_merge($form->getSegmentBlocksSegmentIds(), $form->getSettingsSegmentIds());
$subscribersFound = $this->subscribersFinder->findSubscribersInSegments([$subscriber->getId()], $formSegments);
if (!empty($subscribersFound)) return true;