Commit 693c3af6 authored by Rakhi Soni's avatar Rakhi Soni Committed by Gaurav Kapoor
Browse files

Issue #3305098 by Rakhi Soni, shamir.vs: PHPCS Coding Standard Issue

parent a59a4ab7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ function antibot_form_validation($form, FormStateInterface $form_state) {
  $input = $form_state->getUserInput();

  // Extract the submitted key.
  $submitted_key = isset($input['antibot_key']) ? $input['antibot_key'] : NULL;
  $submitted_key = $input['antibot_key'] ?? NULL;

  // Views exposed forms will initially load and submit without the key.
  if (($form['#form_id'] == 'views_exposed_form') && ($submitted_key === NULL)) {
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
  Drupal.behaviors.antibot = {
    attach: function (context) {
      // Assume the user is not human, despite JS being enabled.
      drupalSettings.antibot.human = false;
      drupalSettings.antibot.human = FALSE;

      // Wait for a mouse to move, indicating they are human.
      document.body.addEventListener('mousemove', function () {
@@ -64,7 +64,7 @@
        });
      }
      // Mark this user as being human.
      drupalSettings.antibot.human = true;
      drupalSettings.antibot.human = TRUE;
    }
  };
})(Drupal, drupalSettings);
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ namespace Drupal\antibot\Controller;
use Drupal\Core\Controller\ControllerBase;

/**
 * Class AntibotPage.
 * Implement Class AntibotPage.
 *
 * @package Drupal\antibot\Controller
 */
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;

/**
 * Class AntibotSettings.
 * Implement Class AntibotSettings.
 *
 * @package Drupal\antibot\Form
 */