Commit f042e610 authored by Tim Rohaly's avatar Tim Rohaly
Browse files

Issue #3070755 by TR: Rename BanIP to BanIp

parent 63ca3066
Loading
Loading
Loading
Loading
+3 −3
Changes for src/Plugin/RulesAction/BanIp.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 *   context = {
 *     "ip" = @ContextDefinition("string",
 *       label = @Translation("IP Address"),
 *       description = @Translation("Ban an IP using the Ban Module. If no IP is provided, the current user IP is used."),
 *       description = @Translation("Ban an IP address using the Ban Module. If no IP is provided, the current user IP is used."),
 *       default_value = NULL,
 *       required = FALSE
 *     ),
@@ -31,7 +31,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 * @todo This action depends on the ban module. We need to have a way to
 * specify this.
 */
class BanIP extends RulesActionBase implements ContainerFactoryPluginInterface {
class BanIp extends RulesActionBase implements ContainerFactoryPluginInterface {

  /**
   * The ban manager used to ban the IP.
@@ -61,7 +61,7 @@ class BanIP extends RulesActionBase implements ContainerFactoryPluginInterface {
  }

  /**
   * Constructs the BanIP object.
   * Constructs the BanIp object.
   *
   * @param array $configuration
   *   A configuration array containing information about the plugin instance.
+2 −2
Changes for tests/src/Unit/Integration/Action/BanIpTest.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -8,10 +8,10 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;

/**
 * @coversDefaultClass \Drupal\rules\Plugin\RulesAction\BanIP
 * @coversDefaultClass \Drupal\rules\Plugin\RulesAction\BanIp
 * @group RulesAction
 */
class BanIPTest extends RulesIntegrationTestBase {
class BanIpTest extends RulesIntegrationTestBase {

  /**
   * The action to be tested.