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

codeigniter4 / shield / 13173436689

06 Feb 2025 06:54AM UTC coverage: 92.833%. First build
13173436689

Pull #1243

github

web-flow
Merge 0ec620e68 into 492365d93
Pull Request #1243: chore: update dependencies to support PHP 8.1 - 8.4

83 of 96 new or added lines in 23 files covered. (86.46%)

2785 of 3000 relevant lines covered (92.83%)

147.04 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