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

codeigniter4 / CodeIgniter4 / 11878724576

17 Nov 2024 12:12PM UTC coverage: 84.428% (+0.001%) from 84.427%
11878724576

push

github

web-flow
fix: code issues after merging develop (#9284)

* cs-fix

* fix services call

* apply rector rules

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

361 existing lines in 20 files now uncovered.

20597 of 24396 relevant lines covered (84.43%)

189.64 hits per line

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

80.0
/system/Exceptions/DownloadException.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\Exceptions;
15

16
/**
17
 * Class DownloadException
18
 */
19
class DownloadException extends RuntimeException
20
{
21
    use DebugTraceableTrait;
22

23
    /**
24
     * @return static
25
     */
26
    public static function forCannotSetFilePath(string $path)
27
    {
28
        return new static(lang('HTTP.cannotSetFilepath', [$path]));
1✔
29
    }
30

31
    /**
32
     * @return static
33
     */
34
    public static function forCannotSetBinary()
35
    {
36
        return new static(lang('HTTP.cannotSetBinary'));
1✔
37
    }
38

39
    /**
40
     * @return static
41
     */
42
    public static function forNotFoundDownloadSource()
43
    {
44
        return new static(lang('HTTP.notFoundDownloadSource'));
1✔
45
    }
46

47
    /**
48
     * @deprecated Since v4.5.6
49
     *
50
     * @return static
51
     */
52
    public static function forCannotSetCache()
53
    {
UNCOV
54
        return new static(lang('HTTP.cannotSetCache'));
×
55
    }
56

57
    /**
58
     * @return static
59
     */
60
    public static function forCannotSetStatusCode(int $code, string $reason)
61
    {
62
        return new static(lang('HTTP.cannotSetStatusCode', [$code, $reason]));
1✔
63
    }
64
}
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

© 2025 Coveralls, Inc