Total Complexity | 2 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | final class ZipPlatform |
||
9 | { |
||
10 | /** @var int MS-DOS OS */ |
||
11 | const OS_DOS = 0; |
||
12 | |||
13 | /** @var int Unix OS */ |
||
14 | const OS_UNIX = 3; |
||
15 | |||
16 | /** MacOS platform */ |
||
17 | const OS_MAC_OSX = 19; |
||
18 | |||
19 | /** @var array Zip Platforms */ |
||
20 | private static $platforms = [ |
||
21 | self::OS_DOS => 'MS-DOS', |
||
22 | 1 => 'Amiga', |
||
23 | 2 => 'OpenVMS', |
||
24 | self::OS_UNIX => 'Unix', |
||
25 | 4 => 'VM/CMS', |
||
26 | 5 => 'Atari ST', |
||
27 | 6 => 'HPFS (OS/2, NT 3.x)', |
||
28 | 7 => 'Macintosh', |
||
29 | 8 => 'Z-System', |
||
30 | 9 => 'CP/M', |
||
31 | 10 => 'Windows NTFS or TOPS-20', |
||
32 | 11 => 'MVS or NTFS', |
||
33 | 12 => 'VSE or SMS/QDOS', |
||
34 | 13 => 'Acorn RISC OS', |
||
35 | 14 => 'VFAT', |
||
36 | 15 => 'alternate MVS', |
||
37 | 16 => 'BeOS', |
||
38 | 17 => 'Tandem', |
||
39 | 18 => 'OS/400', |
||
40 | self::OS_MAC_OSX => 'OS/X (Darwin)', |
||
41 | 30 => 'AtheOS/Syllable', |
||
42 | ]; |
||
43 | |||
44 | /** |
||
45 | * @param int $platform |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 1 | public static function getPlatformName($platform) |
|
54 |