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

@ -203,7 +203,7 @@ class DynamicSegments extends APIEndpoint {
return $this->badRequest([
Error::BAD_REQUEST => str_replace(
'%1$s',
"'" . join("', '", $activelyUsedNewslettersSubjects[$segment->getId()] ) . "'",
"'" . join("', '", $activelyUsedNewslettersSubjects[$segment->getId()]) . "'",
// translators: %1$s is a comma-seperated list of emails for which the segment is used.
_x('Segment cannot be deleted because its used for %1$s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
),