Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Oct 29, 2024
1 parent 1865d8c commit fc0bfc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/EventSubscriber/Challenge.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Drupal\Core\Url;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\KernelEvents;
Expand Down
2 changes: 1 addition & 1 deletion turnstile_protect.module
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function turnstile_protect_cron() {
}

$threshold_timestamp = \Drupal::time()->getRequestTime() - $config->get('window');
// add some padding to prevent missing a whole day of metrics
// Add some padding to prevent missing a whole day of metrics.
$threshold_timestamp -= 300;
$result = \Drupal::database()->query("SELECT MAX(timestamp) FROM {turnstile_protect_history}")->fetchField();
if ($result && $result > $threshold_timestamp) {
Expand Down

0 comments on commit fc0bfc3

Please sign in to comment.