Commit 17d11de7 authored by Omkar Deshpande's avatar Omkar Deshpande
Browse files

Issue #3271358 by omkar-pd, Libbna: Fix Coding Standards

parent 15e3626a
Loading
Loading
Loading
Loading
+4 −6
Changes for src/Form/ToastrSettingsForm.php: 4 added lines, 6 removed lines.
Original line number Diff line number Diff line
<?php


namespace Drupal\toastr\Form;


use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;

/**
 * Class ToastrSettingsForm
 * Custom setting form.
 *
 * @package Drupal\toastr\Form
 */
@@ -18,6 +16,7 @@ class ToastrSettingsForm extends ConfigFormBase {
   * Default settings.
   *
   * @return array
   *   An array containing default values.
   */
  public static function defaultSettings() {
    return [
@@ -35,7 +34,7 @@ class ToastrSettingsForm extends ConfigFormBase {
      'toastr_extended_timeout' => 10000,
      'toastr_show_duration' => 300,
      'toastr_hide_duration' => 1000,
      'toastr_leave_errors' => 1
      'toastr_leave_errors' => 1,
    ];
  }

@@ -67,9 +66,8 @@ class ToastrSettingsForm extends ConfigFormBase {
  /**
   * Gets the value for the config key.
   *
   * Fallbacks to default value if no config exists.
   *
   * @return array|mixed|null
   *   Fallbacks to default value if no config exists.
   */
  private function getConfigValue($key) {
    /** @var \Drupal\Core\Config\ImmutableConfig $config */
+2 −2

File changed.

Contains only whitespace changes.