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

daycry / auth / 22527658769

28 Feb 2026 07:41PM UTC coverage: 63.267% (-3.6%) from 66.864%
22527658769

push

github

web-flow
Merge pull request #36 from daycry/development

Implement TOTP 2FA, JWT auth, device session tracking, and docs overhaul

465 of 1168 new or added lines in 52 files covered. (39.81%)

129 existing lines in 46 files now uncovered.

3064 of 4843 relevant lines covered (63.27%)

41.53 hits per line

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

0.0
/src/Models/ControllerModel.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Auth.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
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 Daycry\Auth\Models;
15

16
use Daycry\Auth\Entities\Api;
17
use Daycry\Auth\Entities\Controller;
18

19
class ControllerModel extends BaseModel
20
{
21
    protected $primaryKey     = 'id';
22
    protected $returnType     = Controller::class;
23
    protected $useSoftDeletes = false;
24
    protected $allowedFields  = [
25
        'api_id',
26
        'controller',
27
        'checked_at',
28
    ];
29
    protected $useTimestamps = true;
30
    protected $createdField  = 'created_at';
31
    protected $updatedField  = 'updated_at';
32
    protected $deletedField  = 'deleted_at';
33

UNCOV
34
    protected function initialize(): void
×
35
    {
36
        parent::initialize();
×
37

38
        $this->table = $this->tables['controllers'];
×
39
    }
40

41
    /**
42
     * Returns all controllers.
43
     *
44
     * @return list<Controller>
45
     */
UNCOV
46
    public function getControllers(Api $api): ?array
×
47
    {
48
        return $this->where('api_id', $api->id)->orderBy($this->primaryKey)->findAll();
×
49
    }
50
}
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