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

AJenbo / agcms / 21420560247

28 Jan 2026 12:59AM UTC coverage: 52.306% (-1.4%) from 53.72%
21420560247

push

github

AJenbo
Bump phpunit/phpunit from 9.6.11 to 9.6.33 in /application

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.11 to 9.6.33.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.33/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.11...9.6.33)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-version: 9.6.33
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

3039 of 5810 relevant lines covered (52.31%)

12.21 hits per line

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

70.59
/application/inc/Models/Requirement.php
1
<?php
2

3
namespace App\Models;
4

5
use App\Services\DbService;
6

7
class Requirement extends AbstractRenderable implements InterfaceRichText
8
{
9
    /** Table name in database. */
10
    public const TABLE_NAME = 'krav';
11

12
    // Backed by DB
13

14
    /** @var string The body HTML. */
15
    private string $html = '';
16

17
    public function __construct(array $data = [])
18
    {
19
        $this->setHtml(valstring($data['html']))
3✔
20
            ->setTitle(valstring($data['title']))
3✔
21
            ->setId(intOrNull($data['id'] ?? null));
3✔
22
    }
23

24
    public static function mapFromDB(array $data): array
25
    {
26
        return [
3✔
27
            'id'    => $data['id'],
3✔
28
            'title' => $data['navn'],
3✔
29
            'html'  => $data['text'],
3✔
30
        ];
3✔
31
    }
32

33
    // Getters and setters
34

35
    /**
36
     * @return $this
37
     */
38
    public function setHtml(string $html): InterfaceRichText
39
    {
40
        $this->html = $html;
3✔
41

42
        return $this;
3✔
43
    }
44

45
    public function getHtml(): string
46
    {
47
        return $this->html;
1✔
48
    }
49

50
    // General methods
51

52
    /**
53
     * Get the url slug.
54
     */
55
    public function getSlug(): string
56
    {
57
        return 'krav/' . $this->getId() . '/' . cleanFileName($this->getTitle()) . '.html';
3✔
58
    }
59

60
    // ORM related functions
61

62
    public function getDbArray(): array
63
    {
64
        $db = app(DbService::class);
×
65

66
        return [
×
67
            'navn' => $db->quote($this->title),
×
68
            'text' => $db->quote($this->html),
×
69
        ];
×
70
    }
71
}
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