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

PHPOffice / PhpSpreadsheet / 17712933260

14 Sep 2025 03:09PM UTC coverage: 95.452% (+0.1%) from 95.304%
17712933260

Pull #4646

github

web-flow
Merge abf357ea9 into 996de1731
Pull Request #4646: Minor Improvements to Reader/Writer Coverage

9 of 11 new or added lines in 6 files covered. (81.82%)

9 existing lines in 3 files now uncovered.

40363 of 42286 relevant lines covered (95.45%)

348.06 hits per line

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

66.67
/src/PhpSpreadsheet/Writer/Xls/ErrorCode.php
1
<?php
2

3
namespace PhpOffice\PhpSpreadsheet\Writer\Xls;
4

5
class ErrorCode
6
{
7
    /**
8
     * @var array<string, int>
9
     */
10
    protected static array $errorCodeMap = [
11
        '#NULL!' => 0x00,
12
        '#DIV/0!' => 0x07,
13
        '#VALUE!' => 0x0F,
14
        '#REF!' => 0x17,
15
        '#NAME?' => 0x1D,
16
        '#NUM!' => 0x24,
17
        '#N/A' => 0x2A,
18
    ];
19

20
    public static function error(string $errorCode): int
21
    {
22
        if (array_key_exists($errorCode, self::$errorCodeMap)) {
7✔
23
            return self::$errorCodeMap[$errorCode];
7✔
24
        }
25

UNCOV
26
        return 0;
×
27
    }
28
}
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