Issues (76)

Components/FormPasswordProtection/functions.php (1 issue)

1
<?php
2
3
namespace Flynt\Components\FormPasswordProtection;
4
5
use Timber\Timber;
6
use Timber\Post;
7
8
add_filter('the_password_form', function ($output) {
0 ignored issues
show
The parameter $output is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

8
add_filter('the_password_form', function (/** @scrutinizer ignore-unused */ $output) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
9
    $context = Timber::get_context();
10
    $context['form'] = [
11
      'url' => site_url('/wp-login.php?action=postpass', 'login_post')
12
    ];
13
14
    return Timber::fetch('index.twig', $context);
15
});
16