Commit 1be08621 authored by Jonathan Smith's avatar Jonathan Smith Committed by Jonathan Smith
Browse files

Issue #3224263 by jonathan1055: Fix typos in comments and messages

parent 4d43427b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -33,9 +33,9 @@ class RulesCommerceProductEvent extends EventBase {
   * be done, but when editing a rule we get commerceproduct in the drop-downs,
   * whereas all other usages in the Rules forms have commerce_product. This is
   * confusing for the admin/developer who has to select from this list when
   * editing a rule. There keep the property name matching the entity type id
   * prevent Coder from reporting the invalid name by disabling this specific
   * sniff for this file only.
   * editing a rule. Therefore keep the property name matching the entity type
   * id and prevent Coder from reporting the invalid name by disabling this
   * specific sniff for this file only.
   *
   * phpcs:disable Drupal.NamingConventions.ValidVariableName.LowerCamelName
   *
+7 −7
Original line number Diff line number Diff line
@@ -3,12 +3,12 @@
namespace Drupal\scheduler\Event;

/**
 * Lists the six events dispatched by Scheduler for commerce_product entities.
 * Lists the six events dispatched by Scheduler for Commerce Product entities.
 */
final class SchedulerCommerceProductEvents {

  /**
   * The event triggered after a commerce_product item is published immediately.
   * The event triggered after a commerce product is published immediately.
   *
   * This event allows modules to react after an entity is published
   * immediately when being saved after editing. The event listener method
@@ -23,7 +23,7 @@ final class SchedulerCommerceProductEvents {
  const PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_publish_immediately';

  /**
   * The event triggered after a commerce_product item is published by cron.
   * The event triggered after a commerce product is published by cron.
   *
   * This event allows modules to react after an entity is published by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
@@ -37,7 +37,7 @@ final class SchedulerCommerceProductEvents {
  const PUBLISH = 'scheduler.commerce_product_publish';

  /**
   * The event triggered before a commerce_product is published immediately.
   * The event triggered before a commerce product is published immediately.
   *
   * This event allows modules to react before an entity is published
   * immediately when being saved after editing. The event listener method
@@ -52,7 +52,7 @@ final class SchedulerCommerceProductEvents {
  const PRE_PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_pre_publish_immediately';

  /**
   * The event triggered before a commerce_product item is published by cron.
   * The event triggered before a commerce product is published by cron.
   *
   * This event allows modules to react before an entity is published by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
@@ -66,7 +66,7 @@ final class SchedulerCommerceProductEvents {
  const PRE_PUBLISH = 'scheduler.commerce_product_pre_publish';

  /**
   * The event triggered before a commerce_product item is unpublished by cron.
   * The event triggered before a commerce product is unpublished by cron.
   *
   * This event allows modules to react before an entity is unpublished by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
@@ -80,7 +80,7 @@ final class SchedulerCommerceProductEvents {
  const PRE_UNPUBLISH = 'scheduler.commerce_product_pre_unpublish';

  /**
   * The event triggered after a commerce_product item is unpublished by cron.
   * The event triggered after a commerce product is unpublished by cron.
   *
   * This event allows modules to react after an entity is unpublished by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@ namespace Drupal\scheduler\Event;
 * Lists the six events dispatched by Scheduler relating to Node entities.
 *
 * The event names here are the original six, when only nodes were supported.
 * See SchedulerMediaEvents for the generic naming convention to follow for any
 * new entity plugin implementations.
 * See SchedulerTaxonomyTermEvents for the generic naming convention to follow
 * for any new entity plugin implementations.
 */
final class SchedulerNodeEvents {

+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ final class SchedulerTaxonomyTermEvents {
  const PUBLISH = 'scheduler.taxonomy_term_publish';

  /**
   * The event triggered before a taxonomy_term is published immediately.
   * The event triggered before a taxonomy term is published immediately.
   *
   * This event allows modules to react before an entity is published
   * immediately when being saved after editing. The event listener method
+2 −2
Original line number Diff line number Diff line
@@ -23,11 +23,11 @@ class SchedulerUnpublishOnConstraint extends CompositeConstraintBase {
  public $messageUnpublishOnRequiredIfPublishOnEntered = "If you set a 'publish on' date then you must also set an 'unpublish on' date.";

  /**
   * Message shown when unpublish_on is missing but node is published directly.
   * Message shown when unpublish_on is missing but trying to save as published.
   *
   * @var string
   */
  public $messageUnpublishOnRequiredIfPublishing = "Either you must set an 'unpublish on' date or save this node as unpublished.";
  public $messageUnpublishOnRequiredIfPublishing = "Either you must set an 'unpublish on' date or save as unpublished.";

  /**
   * Message shown when unpublish_on is not in the future.
Loading