Commit 940083d7 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3268540 by jurgenhaas: Cleanup code to pass PHPCS tests

parent 5f85ecc4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@ class EcaBase extends EcaBaseSubscriber {
   */
  public static function getSubscribedEvents(): array {
    $events = [];
    foreach (BaseEvent::actions() as $action) {
      $events[$action['event_name']][] = ['onEvent'];
    foreach (BaseEvent::definitions() as $definition) {
      $events[$definition['event_name']][] = ['onEvent'];
    }
    return $events;
  }
+2 −2
Original line number Diff line number Diff line
@@ -20,9 +20,9 @@ use Drupal\eca_base\Event\CustomEvent;
class BaseEvent extends EventBase {

  /**
   * @return array[]
   * {@inheritdoc}
   */
  public static function actions(): array {
  public static function definitions(): array {
    $actions = [];
    $actions['eca_cron'] = [
      'label' => 'ECA cron event',
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ class BaseEventDeriver extends EventDeriverBase {
  /**
   * {@inheritdoc}
   */
  protected function actions(): array {
    return BaseEvent::actions();
  protected function definitions(): array {
    return BaseEvent::definitions();
  }

}
+2 −2
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@ class EcaConfig extends EcaBase {
   */
  public static function getSubscribedEvents(): array {
    $events = [];
    foreach (ConfigEvent::actions() as $action) {
      $events[$action['event_name']][] = ['onEvent'];
    foreach (ConfigEvent::definitions() as $definition) {
      $events[$definition['event_name']][] = ['onEvent'];
    }
    return $events;
  }
+2 −2
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ use Drupal\eca\Event\Tag;
class ConfigEvent extends EventBase {

  /**
   * @return array[]
   * {@inheritdoc}
   */
  public static function actions(): array {
  public static function definitions(): array {
    $actions = [
      'delete' => [
        'label' => 'Delete config',
Loading