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

codeigniter4 / shield / 5040786559

pending completion
5040786559

push

github

GitHub
Merge pull request #744 from arashsaffari/customization_db_group

9 of 11 new or added lines in 5 files covered. (81.82%)

2100 of 2268 relevant lines covered (92.59%)

47.83 hits per line

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

80.0
/src/Models/BaseModel.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace CodeIgniter\Shield\Models;
6

7
use CodeIgniter\Model;
8
use CodeIgniter\Shield\Config\Auth;
9

10
abstract class BaseModel extends Model
11
{
12
    use CheckQueryReturnTrait;
13

14
    /**
15
     * Auth Table names
16
     */
17
    protected array $tables;
18

19
    protected Auth $authConfig;
20

21
    public function __construct()
22
    {
23
        $this->authConfig = config(Auth::class);
414✔
24

25
        if ($this->authConfig->DBGroup !== null) {
414✔
NEW
26
            $this->DBGroup = $this->authConfig->DBGroup;
×
27
        }
28

29
        parent::__construct();
414✔
30
    }
31

32
    protected function initialize(): void
33
    {
34
        $this->tables = $this->authConfig->tables;
414✔
35
    }
36
}
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

© 2026 Coveralls, Inc