• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codeigniter4 / shield / 16090699248

05 Jul 2025 06:02PM UTC coverage: 92.756%. Remained the same
16090699248

Pull #1269

github

web-flow
Merge a840c46e1 into 96825d627
Pull Request #1269: fix: code style

2830 of 3051 relevant lines covered (92.76%)

149.75 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/Authentication/Passwords/BaseValidator.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of CodeIgniter Shield.
7
 *
8
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace CodeIgniter\Shield\Authentication\Passwords;
15

16
use CodeIgniter\Shield\Config\Auth as AuthConfig;
17

18
class BaseValidator
19
{
20
    protected ?string $error      = null;
21
    protected ?string $suggestion = null;
22

23
    public function __construct(protected AuthConfig $config)
24
    {
25
    }
246✔
26

27
    /**
28
     * Returns the error string that should be displayed to the user.
29
     */
30
    public function error(): ?string
31
    {
32
        return $this->error;
×
33
    }
34

35
    /**
36
     * Returns a suggestion that may be displayed to the user
37
     * to help them choose a better password. The method is
38
     * required, but a suggestion is optional. May return
39
     * null instead.
40
     */
41
    public function suggestion(): ?string
42
    {
43
        return $this->suggestion;
×
44
    }
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc