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

codeigniter4 / CodeIgniter4 / 12673986434

08 Jan 2025 03:42PM UTC coverage: 84.455% (+0.001%) from 84.454%
12673986434

Pull #9385

github

web-flow
Merge 06e47f0ee into e475fd8fa
Pull Request #9385: refactor: Fix phpstan expr.resultUnused

20699 of 24509 relevant lines covered (84.45%)

190.57 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
    {
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