66
77use Symfony \Contracts \Translation \TranslatorInterface ;
88
9+ // phpcs:disable Generic.Files.LineLength
910/** @SuppressWarnings(PHPMD.StaticAccess) */
1011class DefaultConfigProvider
1112{
@@ -87,7 +88,9 @@ private static function init(): void
8788 ],
8889 'admin_addresses ' => [
8990 'value ' => '' ,
90- 'description ' => self ::$ translator ->trans ('List of email addresses to CC in system messages (separate by commas) ' ),
91+ 'description ' => self ::$ translator ->trans (
92+ 'List of email addresses to CC in system messages (separate by commas) '
93+ ),
9194 'type ' => 'emaillist ' ,
9295 'allowempty ' => true ,
9396 'category ' => 'reporting ' ,
@@ -121,7 +124,7 @@ private static function init(): void
121124 'category ' => 'campaign ' ,
122125 ],
123126 'analytic_tracker ' => [
124- 'values ' => array ( 'google ' => 'Google Analytics ' , 'matomo ' => 'Matomo ' ) ,
127+ 'values ' => [ 'google ' => 'Google Analytics ' , 'matomo ' => 'Matomo ' ] ,
125128 'value ' => 'google ' ,
126129 'description ' => self ::$ translator ->trans ('Analytics tracking code to add to campaign URLs ' ),
127130 'type ' => 'select ' ,
@@ -130,7 +133,9 @@ private static function init(): void
130133 ],
131134 'report_address ' => [
132135 'value ' => 'listreports@[DOMAIN] ' ,
133- 'description ' => self ::$ translator ->trans ('Who gets the reports (email address, separate multiple emails with a comma) ' ),
136+ 'description ' => self ::$ translator ->trans (
137+ 'Who gets the reports (email address, separate multiple emails with a comma) '
138+ ),
134139 'type ' => 'emaillist ' ,
135140 'allowempty ' => true ,
136141 'category ' => 'reporting ' ,
@@ -221,54 +226,54 @@ private static function init(): void
221226 'description ' => self ::$ translator ->trans ('The HTML wrapper template for system messages ' ),
222227 'type ' => 'integer ' ,
223228 'min ' => 0 ,
224- 'max ' => 999 , // or max(id) from template
229+ 'max ' => 999 ,
225230 'allowempty ' => true ,
226231 'category ' => 'transactional ' ,
227232 ],
228233 'subscribeurl ' => [
229- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=subscribe " ,
234+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=subscribe ' ,
230235 'description ' => self ::$ translator ->trans ('URL where subscribers can sign up ' ),
231236 'type ' => 'url ' ,
232237 'allowempty ' => 0 ,
233238 'category ' => 'subscription ' ,
234239 ],
235240 'unsubscribeurl ' => [
236- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=unsubscribe " ,
241+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=unsubscribe ' ,
237242 'description ' => self ::$ translator ->trans ('URL where subscribers can unsubscribe ' ),
238243 'type ' => 'url ' ,
239244 'allowempty ' => 0 ,
240245 'category ' => 'subscription ' ,
241246 ],
242247 'blacklisturl ' => [
243- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=donotsend " ,
248+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=donotsend ' ,
244249 'description ' => self ::$ translator ->trans ('URL where unknown users can unsubscribe (do-not-send-list) ' ),
245250 'type ' => 'url ' ,
246251 'allowempty ' => 0 ,
247252 'category ' => 'subscription ' ,
248253 ],
249254 'confirmationurl ' => [
250- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=confirm " ,
255+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=confirm ' ,
251256 'description ' => self ::$ translator ->trans ('URL where subscribers have to confirm their subscription ' ),
252257 'type ' => 'text ' ,
253258 'allowempty ' => 0 ,
254259 'category ' => 'subscription ' ,
255260 ],
256261 'preferencesurl ' => [
257- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=preferences " ,
262+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=preferences ' ,
258263 'description ' => self ::$ translator ->trans ('URL where subscribers can update their details ' ),
259264 'type ' => 'text ' ,
260265 'allowempty ' => 0 ,
261266 'category ' => 'subscription ' ,
262267 ],
263268 'forwardurl ' => [
264- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=forward " ,
269+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=forward ' ,
265270 'description ' => self ::$ translator ->trans ('URL for forwarding messages ' ),
266271 'type ' => 'text ' ,
267272 'allowempty ' => 0 ,
268273 'category ' => 'subscription ' ,
269274 ],
270275 'vcardurl ' => [
271- 'value ' => $ publicSchema. " ://[WEBSITE] $ pageRoot/?p=vcard " ,
276+ 'value ' => $ publicSchema . ' ://[WEBSITE] ' . $ pageRoot . ' /?p=vcard ' ,
272277 'description ' => self ::$ translator ->trans ('URL for downloading vcf card ' ),
273278 'type ' => 'text ' ,
274279 'allowempty ' => 0 ,
@@ -283,15 +288,16 @@ private static function init(): void
283288 ],
284289 'subscribesubject ' => [
285290 'value ' => self ::$ translator ->trans ('Request for confirmation ' ),
286- 'description ' => self ::$ translator ->trans ('Subject of the message subscribers receive when they sign up ' ),
291+ 'description ' => self ::$ translator ->trans (
292+ 'Subject of the message subscribers receive when they sign up '
293+ ),
287294 'infoicon ' => true ,
288295 'type ' => 'text ' ,
289296 'allowempty ' => 0 ,
290297 'category ' => 'transactional ' ,
291298 ],
292299 'subscribemessage ' => [
293- 'value ' =>
294- ' You have been subscribed to the following newsletters:
300+ 'value ' => ' You have been subscribed to the following newsletters:
295301
296302[LISTS]
297303
@@ -317,14 +323,15 @@ private static function init(): void
317323 ],
318324 'unsubscribesubject ' => [
319325 'value ' => self ::$ translator ->trans ('Goodbye from our Newsletter ' ),
320- 'description ' => self ::$ translator ->trans ('Subject of the message subscribers receive when they unsubscribe ' ),
326+ 'description ' => self ::$ translator ->trans (
327+ 'Subject of the message subscribers receive when they unsubscribe '
328+ ),
321329 'type ' => 'text ' ,
322330 'allowempty ' => 0 ,
323331 'category ' => 'transactional ' ,
324332 ],
325333 'unsubscribemessage ' => [
326- 'value ' =>
327- 'Goodbye from our Newsletter, sorry to see you go.
334+ 'value ' => 'Goodbye from our Newsletter, sorry to see you go.
328335
329336You have been unsubscribed from our newsletters.
330337
@@ -343,14 +350,15 @@ private static function init(): void
343350 ],
344351 'confirmationsubject ' => [
345352 'value ' => self ::$ translator ->trans ('Welcome to our Newsletter ' ),
346- 'description ' => self ::$ translator ->trans ('Subject of the message subscribers receive after confirming their email address ' ),
353+ 'description ' => self ::$ translator ->trans (
354+ 'Subject of the message subscribers receive after confirming their email address '
355+ ),
347356 'type ' => 'text ' ,
348357 'allowempty ' => 0 ,
349358 'category ' => 'transactional ' ,
350359 ],
351360 'confirmationmessage ' => [
352- 'value ' =>
353- 'Welcome to our Newsletter
361+ 'value ' => 'Welcome to our Newsletter
354362
355363Please keep this message for later reference.
356364
@@ -362,14 +370,18 @@ private static function init(): void
362370
363371Thank you '
364372 ,
365- 'description ' => self ::$ translator ->trans ('Message subscribers receive after confirming their email address ' ),
373+ 'description ' => self ::$ translator ->trans (
374+ 'Message subscribers receive after confirming their email address '
375+ ),
366376 'type ' => 'textarea ' ,
367377 'allowempty ' => 0 ,
368378 'category ' => 'transactional ' ,
369379 ],
370380 'updatesubject ' => [
371381 'value ' => self ::$ translator ->trans ('[notify] Change of List-Membership details ' ),
372- 'description ' => self ::$ translator ->trans ('Subject of the message subscribers receive when they have changed their details ' ),
382+ 'description ' => self ::$ translator ->trans (
383+ 'Subject of the message subscribers receive when they have changed their details '
384+ ),
373385 'type ' => 'text ' ,
374386 'allowempty ' => 0 ,
375387 'category ' => 'transactional ' ,
@@ -379,8 +391,7 @@ private static function init(): void
379391 // confirmationinfo is replaced by one of the options below
380392 // userdata is replaced by the information in the database
381393 'updatemessage ' => [
382- 'value ' =>
383- 'This message is to inform you of a change of your details on our newsletter database
394+ 'value ' => 'This message is to inform you of a change of your details on our newsletter database
384395
385396You are currently member of the following newsletters:
386397
@@ -398,7 +409,9 @@ private static function init(): void
398409
399410Thank you '
400411 ,
401- 'description ' => self ::$ translator ->trans ('Message subscribers receive when they have changed their details ' ),
412+ 'description ' => self ::$ translator ->trans (
413+ 'Message subscribers receive when they have changed their details '
414+ ),
402415 'type ' => 'textarea ' ,
403416 'allowempty ' => 0 ,
404417 'category ' => 'transactional ' ,
@@ -423,8 +436,7 @@ private static function init(): void
423436 // message, in case the email is sent to their old email address and they have changed
424437 // their email address
425438 'emailchanged_text_oldaddress ' => [
426- 'value ' =>
427- 'Please Note: when updating your details, your email address has changed.
439+ 'value ' => 'Please Note: when updating your details, your email address has changed.
428440
429441A message has been sent to your new email address with a URL
430442to confirm this change. Please visit this website to activate
@@ -437,7 +449,9 @@ private static function init(): void
437449 ],
438450 'personallocation_subject ' => [
439451 'value ' => self ::$ translator ->trans ('Your personal location ' ),
440- 'description ' => self ::$ translator ->trans ('Subject of message when subscribers request their personal location ' ),
452+ 'description ' => self ::$ translator ->trans (
453+ 'Subject of message when subscribers request their personal location '
454+ ),
441455 'type ' => 'text ' ,
442456 'allowempty ' => 0 ,
443457 'category ' => 'transactional ' ,
@@ -473,8 +487,7 @@ private static function init(): void
473487 'category ' => 'campaign ' ,
474488 ],
475489 'personallocation_message ' => [
476- 'value ' =>
477- 'You have requested your personal location to update your details from our website.
490+ 'value ' => 'You have requested your personal location to update your details from our website.
478491The location is below. Please make sure that you use the full line as mentioned below.
479492Sometimes email programmes can wrap the line into multiple lines.
480493
@@ -490,7 +503,9 @@ private static function init(): void
490503 ],
491504 'remoteurl_append ' => [
492505 'value ' => '' ,
493- 'description ' => self ::$ translator ->trans ('String to always append to remote URL when using send-a-webpage ' ),
506+ 'description ' => self ::$ translator ->trans (
507+ 'String to always append to remote URL when using send-a-webpage '
508+ ),
494509 'type ' => 'text ' ,
495510 'allowempty ' => true ,
496511 'category ' => 'campaign ' ,
0 commit comments