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

codeigniter4 / CodeIgniter4 / 24779314118

22 Apr 2026 12:52PM UTC coverage: 88.221% (-0.05%) from 88.268%
24779314118

Pull #10128

github

web-flow
Merge 4ac7efc19 into 5f8974055
Pull Request #10128: feat: Add Query, Header and Cookie attributes for direct Controller injection

3 of 17 new or added lines in 2 files covered. (17.65%)

22799 of 25843 relevant lines covered (88.22%)

220.37 hits per line

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

0.0
/system/HTTP/Attributes/ParamSource/BaseParamSourceAttribute.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of CodeIgniter 4 framework.
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\HTTP\Attributes\ParamSource;
15

16
abstract class BaseParamSourceAttribute
17
{
18
    public function __construct(private readonly ?string $key = null)
19
    {
NEW
20
    }
×
21

22
    public function getKey(string $paramName): string
23
    {
NEW
24
        return $this->key ?? $paramName;
×
25
    }
26
}
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