Commit 9e080cc0 authored by git's avatar git Committed by Youri van Koppen
Browse files

Issue #2939688 by bruno.bicudo, MegaChriz: Fixed a few coding standards issues.

parent a60afc69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ class CustomSourceDeleteForm extends ConfirmFormBase {
    }
    $this->source = $feeds_feed_type->getCustomSource($key);

    return parent::buildForm($form, $form_state);;
    return parent::buildForm($form, $form_state);
  }

  /**
+8 −2
Original line number Diff line number Diff line
@@ -55,13 +55,19 @@ class FeedDeleteForm extends ContentEntityConfirmFormBase {
    $this->entity->delete();

    try {
      $args = ['@type' => $this->entity->getType()->label(), '%title' => $this->entity->label()];
      $args = [
        '@type'  => $this->entity->getType()->label(),
        '%title' => $this->entity->label(),
      ];
      $this->logger('feeds')->notice('@type: deleted %title.', $args);
    }
    catch (EntityStorageException $e) {
      // There was an error loading the feed type. Log a different message
      // instead.
      $args = ['@type' => $this->entity->bundle(), '%title' => $this->entity->label()];
      $args = [
        '@type'  => $this->entity->bundle(),
        '%title' => $this->entity->label(),
      ];
      $this->logger('feeds')->notice('Deleted %title of unknown feed type @type.', $args);
    }
    $this->messenger()->addMessage($this->t('%title has been deleted.', $args));
+4 −1
Original line number Diff line number Diff line
@@ -53,7 +53,10 @@ class FeedScheduleImportForm extends ContentEntityConfirmFormBase {
  public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->entity->startCronImport();

    $args = ['@type' => $this->entity->getType()->label(), '%title' => $this->entity->label()];
    $args = [
      '@type'  => $this->entity->getType()->label(),
      '%title' => $this->entity->label(),
    ];
    $this->logger('feeds')->notice('@type: scheduled import for %title.', $args);
    $this->messenger()->addStatus($this->t('%title has been scheduled for import.', $args));

+4 −1
Original line number Diff line number Diff line
@@ -36,7 +36,10 @@ class FeedUnlockForm extends ContentEntityConfirmFormBase {
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->entity->unlock();
    $args = ['@type' => $this->entity->getType()->label(), '%title' => $this->entity->label()];
    $args = [
      '@type'  => $this->entity->getType()->label(),
      '%title' => $this->entity->label(),
    ];

    $this->logger('feeds')->notice('@type: unlocked %title.', $args);
    $this->messenger()->addMessage($this->t('%title has been unlocked.', $args));
+1 −1
Original line number Diff line number Diff line
@@ -520,7 +520,7 @@ class MappingForm extends FormBase {
      $element['sources']['#rows'][$key] = [
        'label' => $info['label'],
        'name' => $key,
        'description' => isset($info['description']) ? $info['description'] : NULL,
        'description' => $info['description'] ?? NULL,
      ];
    }
    asort($element['sources']['#rows']);
Loading