Commit 401a8a52 authored by Urvashi Vora's avatar Urvashi Vora Committed by Adam Shepherd
Browse files

Issue #3228605 by AdamPS, urvashi_vora: Fix Drupal coding standards

parent f870907d
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/symfony_mailer_bc/src/MailManagerReplacement.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ class MailManagerReplacement extends MailManager {
      'id' => $module . '_' . $key,
      'module' => $module,
      'key' => $key,
      'to' => $to ?: null,
      'to' => $to ?: NULL,
      'langcode' => $langcode,
      'params' => $params,
      'reply-to' => $reply,
+2 −0
Changes for modules/symfony_mailer_bc/src/Plugin/EmailBuilder/LegacyEmailBuilder.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ class LegacyEmailBuilder extends EmailBuilderBase implements ContainerFactoryPlu
  ];

  /**
   * Constructor.
   *
   * @param array $configuration
   *   A configuration array containing information about the plugin instance.
   * @param string $plugin_id
+2 −1
Changes for modules/symfony_mailer_bc/src/Plugin/EmailBuilder/UpdateEmailBuilder.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -83,7 +83,8 @@ class UpdateEmailBuilder extends EmailBuilderBase {
   * {@inheritdoc}
   */
  public function import() {
    // Get without overrides to avoid the dummy value set by MailerBcConfigOverride.
    // Get without overrides to avoid the dummy value
    // set by MailerBcConfigOverride.
    $mail_notification = implode(',', $this->helper()->config()->get('update.settings')->getOriginal('notification.emails', FALSE));

    if ($mail_notification) {
+0 −1
Changes for modules/symfony_mailer_bc/tests/themes/test_bc_mail_theme/test_bc_mail_theme.info.yml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
name: 'Theme for testing BC template rendering'
type: theme
description: 'Test theme which provides an alternative template for BC test mail.'
version: VERSION
base theme: stark
core_version_requirement: ^9.1
+3 −1
Changes for src/Address.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -150,7 +150,9 @@ class Address implements AddressInterface {
   * @internal
   */
  public function __serialize() {
    return [$this->email, $this->displayName, $this->langcode, $this->account ? $this->account->id() : NULL];
    return [$this->email, $this->displayName, $this->langcode,
      $this->account ? $this->account->id() : NULL,
    ];
  }

  /**
Loading