Commit 5f85ecc4 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

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

parent 08bec953
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 */

use Drupal\eca_base\HookHandler;

/**
+8 −6
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ use Drupal\eca\EcaState;
use Drupal\eca\Event\ConditionalApplianceInterface;

/**
 * Class CronEvent
 * Class CronEvent.
 *
 * @package Drupal\eca_base\Event
 */
@@ -25,11 +25,13 @@ class CronEvent extends Event implements ConditionalApplianceInterface {
   * @return string[]
   */
  public static function fields(): array {
    return [[
    return [
      [
        'name' => 'frequency',
        'label' => 'Frequency (UTC)',
        'type' => 'String',
    ]];
      ],
    ];
  }

  /**
+9 −7
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ use Drupal\eca\Event\TokenReceiverInterface;
use Drupal\eca\Event\TokenReceiverTrait;

/**
 * Class CustomEvent
 * Class CustomEvent.
 *
 * @package Drupal\eca_base\Event
 */
@@ -32,7 +32,7 @@ class CustomEvent extends Event implements ConditionalApplianceInterface, TokenR

  /**
   * Provides a custom event.

   *
   * @param string $event_id
   *   The (optional) ID for this event, so that it only applies, if it matches
   *   the given event ID in the arguments.
@@ -51,11 +51,13 @@ class CustomEvent extends Event implements ConditionalApplianceInterface, TokenR
   * @return string[]
   */
  public static function fields(): array {
    return [[
    return [
      [
        'name' => 'event_id',
        'label' => 'Event ID',
        'type' => 'String',
    ]];
      ],
    ];
  }

  /**
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ class CompareScalarTest extends KernelTestBase {
   *
   * @dataProvider stringDataProvider
   * @dataProvider numericDataProvider
   *
   * @throws \Drupal\Component\Plugin\Exception\PluginException
   */
  public function testScalarValues($left, $right, $operator, $type, $case, $negate, $message, $assertTrue = TRUE): void {
+4 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 */

if (!class_exists('Drupal\Core\Field\FieldUpdateActionBase', FALSE)) {
  class_alias('Drupal\eca_content\Plugin\Action\FieldUpdateActionBase', 'Drupal\Core\Field\FieldUpdateActionBase');
}
Loading