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

codeigniter4 / CodeIgniter4 / 14429635709

13 Apr 2025 12:49PM UTC coverage: 84.438%. Remained the same
14429635709

Pull #9518

github

web-flow
Merge fc6f0c96b into 0f7f1a6d4
Pull Request #9518: refactor: fix `function.alreadyNarrowedType` errors

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

20813 of 24649 relevant lines covered (84.44%)

191.48 hits per line

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

0.0
/system/Debug/Toolbar/Collectors/Config.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\Debug\Toolbar\Collectors;
15

16
use CodeIgniter\CodeIgniter;
17
use Config\App;
18

19
/**
20
 * Debug toolbar configuration
21
 */
22
class Config
23
{
24
    /**
25
     * Return toolbar config values as an array.
26
     */
27
    public static function display(): array
28
    {
29
        $config = config(App::class);
×
30

31
        return [
×
32
            'ciVersion'   => CodeIgniter::CI_VERSION,
×
33
            'phpVersion'  => PHP_VERSION,
×
34
            'phpSAPI'     => PHP_SAPI,
×
35
            'environment' => ENVIRONMENT,
×
36
            'baseURL'     => $config->baseURL,
×
37
            'timezone'    => app_timezone(),
×
38
            'locale'      => service('request')->getLocale(),
×
39
            'cspEnabled'  => $config->CSPEnabled,
×
40
        ];
×
41
    }
42
}
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